@@ 331-341 (lines=11) @@ | ||
328 | return $router; |
|
329 | }; |
|
330 | ||
331 | $this->extend('request_matcher', function ($matcher, $app) { |
|
332 | $matchers = []; |
|
333 | $matchers[] = $app['eccube.router.extend']; |
|
334 | foreach ($app['eccube.routers.plugin'] as $router) { |
|
335 | $matchers[] = $router; |
|
336 | }; |
|
337 | $matchers[] = $app['eccube.router.origin']; |
|
338 | $matchers[] = $matcher; |
|
339 | ||
340 | return new ChainUrlMatcher($matchers, $app['request_context']); |
|
341 | }); |
|
342 | ||
343 | $this->extend('url_generator', function ($generator, $app) { |
|
344 | $generators = []; |
|
@@ 343-353 (lines=11) @@ | ||
340 | return new ChainUrlMatcher($matchers, $app['request_context']); |
|
341 | }); |
|
342 | ||
343 | $this->extend('url_generator', function ($generator, $app) { |
|
344 | $generators = []; |
|
345 | $generators[] = $app['eccube.router.extend']; |
|
346 | foreach ($app['eccube.routers.plugin'] as $router) { |
|
347 | $generators[] = $router; |
|
348 | }; |
|
349 | $generators[] = $app['eccube.router.origin']; |
|
350 | $generators[] = $generator; |
|
351 | ||
352 | return new ChainUrlGenerator($generators, $app['request_context']); |
|
353 | }); |
|
354 | ||
355 | // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため) |
|
356 | $this->extend('routes', function ($routes, $app) { |