@@ -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,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 | ); |
@@ -49,7 +49,8 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * @return void |
| 51 | 51 | */ |
| 52 | - public function testParse() { |
|
| 52 | + public function testParse() |
|
| 53 | + { |
|
| 53 | 54 | $this->markTestIncomplete('Not implemented yet.'); |
| 54 | 55 | /*$url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |
| 55 | 56 | $response = $this->SubdomainRoute->parse($url, ''); |
@@ -62,7 +63,8 @@ discard block |
||
| 62 | 63 | /** |
| 63 | 64 | * @return void |
| 64 | 65 | */ |
| 65 | - public function testMatch() { |
|
| 66 | + public function testMatch() |
|
| 67 | + { |
|
| 66 | 68 | $this->markTestIncomplete('Not implemented yet.'); |
| 67 | 69 | /*$url = ['prefix' => 'admin', 'Controller' => 'pages', 'action' => 'index']; |
| 68 | 70 | $response = $this->SubdomainRoute->match($url, ''); |
@@ -72,7 +72,8 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * @return void |
| 74 | 74 | */ |
| 75 | - public function testInvoke() { |
|
| 75 | + public function testInvoke() |
|
| 76 | + { |
|
| 76 | 77 | $this->markTestIncomplete('Not implemented yet.'); |
| 77 | 78 | /*$this->configRequest(['uri' => ['_host' => 'admin.example.com']]); |
| 78 | 79 | $request = $this->getMockBuilder('Psr\Http\Message\ServerRequestInterface')->getMock(); |
@@ -32,7 +32,8 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function testOutput() { |
|
| 35 | + public function testOutput() |
|
| 36 | + { |
|
| 36 | 37 | $this->markTestIncomplete('Not implemented yet.'); |
| 37 | 38 | } |
| 38 | 39 | |