11
11
12
12
namespace Symfony \Component \Routing ;
13
13
14
- use Symfony \Component \Config \Exception \FileLoaderLoadException ;
14
+ use Symfony \Component \Config \Exception \LoaderLoadException ;
15
15
use Symfony \Component \Config \Loader \LoaderInterface ;
16
16
use Symfony \Component \Config \Resource \ResourceInterface ;
17
17
@@ -54,7 +54,7 @@ public function __construct(LoaderInterface $loader = null)
54
54
*
55
55
* @return self
56
56
*
57
- * @throws FileLoaderLoadException
57
+ * @throws LoaderLoadException
58
58
*/
59
59
public function import ($ resource , $ prefix = '/ ' , $ type = null )
60
60
{
@@ -347,7 +347,7 @@ private function generateRouteName(Route $route): string
347
347
*
348
348
* @return RouteCollection[]
349
349
*
350
- * @throws FileLoaderLoadException If no loader is found
350
+ * @throws LoaderLoadException If no loader is found
351
351
*/
352
352
private function load ($ resource , string $ type = null ): array
353
353
{
@@ -362,11 +362,11 @@ private function load($resource, string $type = null): array
362
362
}
363
363
364
364
if (null === $ resolver = $ this ->loader ->getResolver ()) {
365
- throw new FileLoaderLoadException ($ resource , null , null , null , $ type );
365
+ throw new LoaderLoadException ($ resource , null , null , null , $ type );
366
366
}
367
367
368
368
if (false === $ loader = $ resolver ->resolve ($ resource , $ type )) {
369
- throw new FileLoaderLoadException ($ resource , null , null , null , $ type );
369
+ throw new LoaderLoadException ($ resource , null , null , null , $ type );
370
370
}
371
371
372
372
$ collections = $ loader ->load ($ resource , $ type );
0 commit comments