1 | <?php |
||
11 | class LegacyRouteLoader extends Loader |
||
12 | { |
||
13 | /** @var bool */ |
||
14 | private $loaded = false; |
||
15 | |||
16 | /** |
||
17 | * @var \Symfony\Component\Finder\Finder |
||
18 | */ |
||
19 | private $finder; |
||
20 | |||
21 | /** |
||
22 | * LegacyRouteLoader constructor. |
||
23 | * |
||
24 | * @param string $legacyPath |
||
25 | * |
||
26 | * @throws \InvalidArgumentException |
||
27 | */ |
||
28 | public function __construct($legacyPath, Finder $finder = null) |
||
37 | |||
38 | /** {@inheritdoc} */ |
||
39 | public function load($resource, $type = null) |
||
64 | |||
65 | /** |
||
66 | * @param SplFileInfo $file |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | private function createLegacyRouteName(SplFileInfo $file) |
||
79 | |||
80 | /** {@inheritdoc} */ |
||
81 | public function supports($resource, $type = null) |
||
85 | } |
||
86 |