mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix namespace declaration
This commit is contained in:
@@ -37,7 +37,7 @@ final class Laravel4 extends Laravel
|
||||
Blade::extend(function ($view, $compiler) {
|
||||
$pattern = $compiler->createPlainMatcher('flasher_render(.*)');
|
||||
|
||||
return preg_replace($pattern, '$1<?php echo app(\'flasher.presenter.html\')->render($2); ?>', $view);
|
||||
return preg_replace($pattern, "$1<?php echo app('flasher.presenter.html')->render($2); ?>", $view);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ final class Laravel50 extends Laravel
|
||||
Blade::extend(function ($view, $compiler) {
|
||||
$pattern = $compiler->createPlainMatcher('flasher_render(.*)');
|
||||
|
||||
return preg_replace($pattern, '$1<?php echo app(\'flasher.presenter.html\')->render($2); ?>', $view);
|
||||
return preg_replace($pattern, "$1<?php echo app('flasher.presenter.html')->render($2); ?>", $view);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user