-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #67 - New AssetStrategy #97
Conversation
|
/** @var array */ | ||
protected $file_extensions = []; | ||
|
||
public function detect(LocaleEvent $event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added because we don't want to run detect
event on other strategies
|
||
// if the file extension of the uri is found within the configured file_extensions, we do not rewrite and skip further processing | ||
if (in_array($extension, $this->file_extensions)) { | ||
$event->stopPropagation(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will strop event propagation instead of returning false and handling one more response type, also does not require any changes in Detector
... better? :D
@basz if you don't see more problems I will merge this and release 0.3.0 |
added tests and some modifications to #93
I have a bad feeling that
assemble()
should be also stopped but not sure about this @basz ?