Skip to content

Commit

Permalink
Update last changes yiiframework.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Nov 12, 2021
1 parent 008631c commit 38e1fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/tests/web/application.php
Expand Up @@ -9,7 +9,7 @@
use Yiisoft\Middleware\Dispatcher\MiddlewareDispatcher;
use Yiisoft\Router\Middleware\Router;
use Yiisoft\Session\SessionMiddleware;
use Yiisoft\Yii\Web\Application;
use Yiisoft\Yii\Http\Application;

return [
Application::class => [
Expand All @@ -19,9 +19,9 @@
static fn(MiddlewareDispatcher $middlewareDispatcher) =>
$middlewareDispatcher->withMiddlewares(
[
Router::class,
SessionMiddleware::class,
ErrorCatcher::class,
SessionMiddleware::class,
Router::class,
]
),
),
Expand Down
4 changes: 2 additions & 2 deletions tests/_data/public/index.php
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use Yiisoft\Yii\Runner\Web\WebApplicationRunner;
use Yiisoft\Yii\Runner\Http\HttpApplicationRunner;

require_once dirname(__DIR__, 3) . '/vendor/autoload.php';

Expand Down Expand Up @@ -45,5 +45,5 @@
define('YII_ENV', getenv('YII_ENV') ?: 'tests');

// Run web application runner
$runner = new WebApplicationRunner(YII_CONFIG_DIRECTORY, YII_DEBUG, YII_ENV);
$runner = new HttpApplicationRunner(YII_CONFIG_DIRECTORY, YII_DEBUG, YII_ENV);
$runner->run();

0 comments on commit 38e1fd8

Please sign in to comment.