diff --git a/src/Container.php b/src/Container.php index 96b6b80..07fc458 100644 --- a/src/Container.php +++ b/src/Container.php @@ -34,6 +34,7 @@ class Container extends \yii\di\Container 'yii\web\ErrorHandler' => 'tourze\workerman\yii2\web\ErrorHandler', 'yii\web\User' => 'tourze\workerman\yii2\web\User', 'yii\web\View' => 'tourze\workerman\yii2\web\View', + 'yii\web\UrlManager' => 'tourze\workerman\yii2\web\UrlManager', ]; /** @@ -203,7 +204,6 @@ class Container extends \yii\di\Container 'yii\web\JsonResponseFormatter', 'yii\web\Link', 'yii\web\MultipartFormDataParser', - 'yii\web\UrlManager', 'yii\web\UrlNormalizer', 'yii\web\UrlRule', 'yii\web\UserEvent', diff --git a/src/web/UrlManager.php b/src/web/UrlManager.php new file mode 100644 index 0000000..5877536 --- /dev/null +++ b/src/web/UrlManager.php @@ -0,0 +1,14 @@ +