1111
1212namespace Symfony \Component \Routing ;
1313
14- use Symfony \Component \Config \Exception \FileLoaderLoadException ;
14+ use Symfony \Component \Config \Exception \LoaderLoadException ;
1515use Symfony \Component \Config \Loader \LoaderInterface ;
1616use Symfony \Component \Config \Resource \ResourceInterface ;
1717
@@ -54,7 +54,7 @@ public function __construct(LoaderInterface $loader = null)
5454 *
5555 * @return self
5656 *
57- * @throws FileLoaderLoadException
57+ * @throws LoaderLoadException
5858 */
5959 public function import ($ resource , $ prefix = '/ ' , $ type = null )
6060 {
@@ -347,7 +347,7 @@ private function generateRouteName(Route $route): string
347347 *
348348 * @return RouteCollection[]
349349 *
350- * @throws FileLoaderLoadException If no loader is found
350+ * @throws LoaderLoadException If no loader is found
351351 */
352352 private function load ($ resource , string $ type = null ): array
353353 {
@@ -362,11 +362,11 @@ private function load($resource, string $type = null): array
362362 }
363363
364364 if (null === $ resolver = $ this ->loader ->getResolver ()) {
365- throw new FileLoaderLoadException ($ resource , null , null , null , $ type );
365+ throw new LoaderLoadException ($ resource , null , null , null , $ type );
366366 }
367367
368368 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 );
370370 }
371371
372372 $ collections = $ loader ->load ($ resource , $ type );
0 commit comments