Skip to content

Commit

Permalink
Fix deprecated method use.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 16, 2017
1 parent b66053d commit 0b6f918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/DispatcherFilter.php
Expand Up @@ -164,7 +164,7 @@ public function matches(Event $event)
if (!empty($this->_config['for'])) {
$len = strlen('preg:');
$for = $this->_config['for'];
$url = $request->here(false);
$url = $request->getRequestTarget();
if (substr($for, 0, $len) === 'preg:') {
$pass = (bool)preg_match(substr($for, $len), $url);
} else {
Expand Down

0 comments on commit 0b6f918

Please sign in to comment.