2020use Symfony \Component \DependencyInjection \Reference ;
2121use Symfony \Component \HttpKernel \Kernel ;
2222
23- use FOS \Rest \Util \Codes ;
23+ use FOS \RestBundle \Util \Codes ;
2424
2525use FOS \RestBundle \FOSRestBundle ;
2626
@@ -83,12 +83,12 @@ public function load(array $configs, ContainerBuilder $container)
8383 $ container ->setParameter ($ this ->getAlias ().'.force_redirects ' , $ config ['view ' ]['force_redirects ' ]);
8484
8585 if (!is_numeric ($ config ['view ' ]['failed_validation ' ])) {
86- $ config ['view ' ]['failed_validation ' ] = constant ('\FOS\Rest \Util\Codes:: ' .$ config ['view ' ]['failed_validation ' ]);
86+ $ config ['view ' ]['failed_validation ' ] = constant ('\FOS\RestBundle \Util\Codes:: ' .$ config ['view ' ]['failed_validation ' ]);
8787 }
8888 $ container ->setParameter ($ this ->getAlias ().'.failed_validation ' , $ config ['view ' ]['failed_validation ' ]);
8989
9090 if (!is_numeric ($ config ['view ' ]['empty_content ' ])) {
91- $ config ['view ' ]['empty_content ' ] = constant ('\FOS\Rest \Util\Codes:: ' .$ config ['view ' ]['empty_content ' ]);
91+ $ config ['view ' ]['empty_content ' ] = constant ('\FOS\RestBundle \Util\Codes:: ' .$ config ['view ' ]['empty_content ' ]);
9292 }
9393 $ container ->setParameter ($ this ->getAlias ().'.empty_content ' , $ config ['view ' ]['empty_content ' ]);
9494
@@ -104,7 +104,7 @@ public function load(array $configs, ContainerBuilder $container)
104104
105105 foreach ($ config ['exception ' ]['codes ' ] as $ exception => $ code ) {
106106 if (!is_numeric ($ code )) {
107- $ config ['exception ' ]['codes ' ][$ exception ] = constant ("\FOS\Rest \Util\Codes:: $ code " );
107+ $ config ['exception ' ]['codes ' ][$ exception ] = constant ("\FOS\RestBundle \Util\Codes:: $ code " );
108108 }
109109 $ this ->testExceptionExists ($ exception );
110110 }
0 commit comments