22
33namespace Docplanner \AssetsBundle \DependencyInjection ;
44
5+ use RuntimeException ;
6+ use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
57use Symfony \Component \DependencyInjection \ContainerBuilder ;
68use Symfony \Component \Config \FileLocator ;
79use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
@@ -40,7 +42,7 @@ public function load(array $configs, ContainerBuilder $container)
4042
4143 if (false === file_exists ($ path ))
4244 {
43- throw new \ RuntimeException (sprintf ('File "%s" not found(asset "%s")! ' , $ path , $ assetName ));
45+ throw new RuntimeException (sprintf ('File "%s" not found(asset "%s")! ' , $ path , $ assetName ));
4446 }
4547
4648 if ($ config ['use_revisions ' ])
@@ -78,7 +80,7 @@ public function load(array $configs, ContainerBuilder $container)
7880
7981 $ container ->setParameter ('docplanner_assets.config ' , $ config );
8082
81- $ loader = new Loader \ YamlFileLoader ($ container , new FileLocator (__DIR__ .'/../Resources/config ' ));
83+ $ loader = new YamlFileLoader ($ container , new FileLocator (__DIR__ .'/../Resources/config ' ));
8284 $ loader ->load ('services.yml ' );
8385 }
8486
@@ -93,14 +95,14 @@ protected function loadManifestAssets($manifestFile)
9395
9496 if (!is_array ($ manifest ))
9597 {
96- throw new \ RuntimeException (sprintf ('Cannot parse manifest file `%s` ' , $ manifestFile ));
98+ throw new RuntimeException (sprintf ('Cannot parse manifest file `%s` ' , $ manifestFile ));
9799 }
98100
99101 self ::$ parsedManifests [$ manifestFile ] = $ manifest ;
100102 }
101103 else
102104 {
103- throw new \ RuntimeException (sprintf ('Manifest file `%s` not found ' , $ manifestFile ));
105+ throw new RuntimeException (sprintf ('Manifest file `%s` not found ' , $ manifestFile ));
104106 }
105107 }
106108
0 commit comments