Skip to content

Commit

Permalink
Subfolder Middleware Renamed (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored and samdark committed Dec 31, 2019
1 parent 725d0f4 commit f7ee749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
],
],

\Yiisoft\Yii\Web\Middleware\SubFolderMiddleware::class => [
'__construct()' => [Reference::to(UrlGeneratorInterface::class), Reference::to(Aliases::class)],
// 'prefix' => '',
],
// here you can configure custom prefix of the web path
// \Yiisoft\Yii\Web\Middleware\SubFolder::class => [
// 'prefix' => '',
// ],

// event dispatcher
ListenerProviderInterface::class => Provider::class,
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/MiddlewareDispatcherFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Yiisoft\Router\Middleware\Router;
use Yiisoft\Yii\Web\ErrorHandler\ErrorCatcher;
use Yiisoft\Yii\Web\MiddlewareDispatcher;
use Yiisoft\Yii\Web\Middleware\SubFolderMiddleware;
use Yiisoft\Yii\Web\Middleware\SubFolder;
use Yiisoft\Yii\Web\Session\SessionMiddleware;

class MiddlewareDispatcherFactory
Expand All @@ -15,7 +15,7 @@ public function __invoke(ContainerInterface $container)
$session = $container->get(SessionMiddleware::class);
$router = $container->get(Router::class);
$errorCatcher = $container->get(ErrorCatcher::class);
$subFolder = $container->get(SubFolderMiddleware::class);
$subFolder = $container->get(SubFolder::class);

return new MiddlewareDispatcher([
$errorCatcher,
Expand Down

0 comments on commit f7ee749

Please sign in to comment.