diff --git a/composer.json b/composer.json index f06d634..97d5f80 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "ext-json": "*", "ext-mbstring": "*", - "cakephp/cakephp": "^4.0.0" + "cakephp/cakephp": "^4.3.0" }, "require-dev": { "cakephp/cakephp-codesniffer": "^4.2.0", diff --git a/config/routes.php b/config/routes.php index e8bb6e3..ad2d5b1 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,12 +1,12 @@ '/asset-mix'], - function (RouteBuilder $routes) { - $routes->fallbacks(DashedRoute::class); - } -); + use Cake\Routing\Route\DashedRoute; + use Cake\Routing\RouteBuilder; + + /** @var RouteBuilder $routes */ + $routes->plugin( + 'AssetMix', + ['path' => '/asset-mix'], + function (RouteBuilder $routes) { + $routes->fallbacks(DashedRoute::class); + });