|
@@ 312-322 (lines=11) @@
|
| 309 |
|
return $router; |
| 310 |
|
}; |
| 311 |
|
|
| 312 |
|
$this->extend('request_matcher', function ($matcher, $app) { |
| 313 |
|
$matchers = []; |
| 314 |
|
$matchers[] = $app['eccube.router.extend']; |
| 315 |
|
foreach ($app['eccube.routers.plugin'] as $router) { |
| 316 |
|
$matchers[] = $router; |
| 317 |
|
}; |
| 318 |
|
$matchers[] = $app['eccube.router.origin']; |
| 319 |
|
$matchers[] = $matcher; |
| 320 |
|
|
| 321 |
|
return new ChainUrlMatcher($matchers, $app['request_context']); |
| 322 |
|
}); |
| 323 |
|
|
| 324 |
|
$this->extend('url_generator', function ($generator, $app) { |
| 325 |
|
$generators = []; |
|
@@ 324-334 (lines=11) @@
|
| 321 |
|
return new ChainUrlMatcher($matchers, $app['request_context']); |
| 322 |
|
}); |
| 323 |
|
|
| 324 |
|
$this->extend('url_generator', function ($generator, $app) { |
| 325 |
|
$generators = []; |
| 326 |
|
$generators[] = $app['eccube.router.extend']; |
| 327 |
|
foreach ($app['eccube.routers.plugin'] as $router) { |
| 328 |
|
$generators[] = $router; |
| 329 |
|
}; |
| 330 |
|
$generators[] = $app['eccube.router.origin']; |
| 331 |
|
$generators[] = $generator; |
| 332 |
|
|
| 333 |
|
return new ChainUrlGenerator($generators, $app['request_context']); |
| 334 |
|
}); |
| 335 |
|
|
| 336 |
|
// Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため) |
| 337 |
|
$this->extend('routes', function ($routes, $app) { |