|
@@ 298-308 (lines=11) @@
|
| 295 |
|
return $router; |
| 296 |
|
}; |
| 297 |
|
|
| 298 |
|
$this->extend('request_matcher', function ($matcher, $app) { |
| 299 |
|
$matchers = []; |
| 300 |
|
$matchers[] = $app['eccube.router.extend']; |
| 301 |
|
foreach ($app['eccube.routers.plugin'] as $router) { |
| 302 |
|
$matchers[] = $router; |
| 303 |
|
}; |
| 304 |
|
$matchers[] = $app['eccube.router.origin']; |
| 305 |
|
$matchers[] = $matcher; |
| 306 |
|
|
| 307 |
|
return new ChainUrlMatcher($matchers, $app['request_context']); |
| 308 |
|
}); |
| 309 |
|
|
| 310 |
|
$this->extend('url_generator', function ($generator, $app) { |
| 311 |
|
$generators = []; |
|
@@ 310-320 (lines=11) @@
|
| 307 |
|
return new ChainUrlMatcher($matchers, $app['request_context']); |
| 308 |
|
}); |
| 309 |
|
|
| 310 |
|
$this->extend('url_generator', function ($generator, $app) { |
| 311 |
|
$generators = []; |
| 312 |
|
$generators[] = $app['eccube.router.extend']; |
| 313 |
|
foreach ($app['eccube.routers.plugin'] as $router) { |
| 314 |
|
$generators[] = $router; |
| 315 |
|
}; |
| 316 |
|
$generators[] = $app['eccube.router.origin']; |
| 317 |
|
$generators[] = $generator; |
| 318 |
|
|
| 319 |
|
return new ChainUrlGenerator($generators, $app['request_context']); |
| 320 |
|
}); |
| 321 |
|
|
| 322 |
|
// init http cache |
| 323 |
|
$this->initCacheRequest(); |