@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | EventManager::instance()->on( |
| 30 | 30 | 'Server.buildMiddleware', |
| 31 | - function ($event, $middleware) { |
|
| 31 | + function($event, $middleware) { |
|
| 32 | 32 | $middleware->add(new SubdomainMiddleware()); |
| 33 | 33 | } |
| 34 | 34 | ); |
@@ -28,7 +28,8 @@ |
||
| 28 | 28 | |
| 29 | 29 | EventManager::instance()->on( |
| 30 | 30 | 'Server.buildMiddleware', |
| 31 | - function ($event, $middleware) { |
|
| 31 | + function ($event, $middleware) |
|
| 32 | + { |
|
| 32 | 33 | $middleware->add(new SubdomainMiddleware()); |
| 33 | 34 | } |
| 34 | 35 | ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | Router::scope( |
| 23 | 23 | '/', |
| 24 | 24 | ['prefix' => 'admin'], |
| 25 | - function ($routes) { |
|
| 25 | + function($routes) { |
|
| 26 | 26 | $routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute'); |
| 27 | 27 | } |
| 28 | 28 | ); |
@@ -22,7 +22,8 @@ |
||
| 22 | 22 | Router::scope( |
| 23 | 23 | '/', |
| 24 | 24 | ['prefix' => 'admin'], |
| 25 | - function ($routes) { |
|
| 25 | + function ($routes) |
|
| 26 | + { |
|
| 26 | 27 | $routes->fallbacks('Multidimensional/Subdomains.SubdomainRoute'); |
| 27 | 28 | } |
| 28 | 29 | ); |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @return void |
|
| 46 | - */ |
|
| 45 | + * @return void |
|
| 46 | + */ |
|
| 47 | 47 | /* public function testParse() { |
| 48 | 48 | * |
| 49 | 49 | * $url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | * } |
| 57 | 57 | */ |
| 58 | 58 | /** |
| 59 | - * @return void |
|
| 60 | - */ |
|
| 59 | + * @return void |
|
| 60 | + */ |
|
| 61 | 61 | /* public function testMatch() { |
| 62 | 62 | * |
| 63 | 63 | * $url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |