File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1313
1414namespace MonsieurBiz \SyliusNoCommercePlugin \Kernel ;
1515
16+ use Exception ;
1617use MonsieurBiz \SyliusNoCommercePlugin \Model \Config ;
1718use MonsieurBiz \SyliusNoCommercePlugin \Model \ConfigInterface ;
1819use MonsieurBiz \SyliusNoCommercePlugin \Provider \FeaturesProviderInterface ;
@@ -84,7 +85,12 @@ public function getRoutesToRemove(): array
8485 // Loop on settings to add routes
8586 /** @var FeaturesProviderInterface $featuresProvider */
8687 $ featuresProvider = $ this ->container ->get ('monsieurbiz.no_commerce.provider.features_provider ' );
87- $ routesToEnable = $ featuresProvider ->getRoutesToEnable ();
88+
89+ try {
90+ $ routesToEnable = $ featuresProvider ->getRoutesToEnable ();
91+ } catch (Exception $ e ) {
92+ $ routesToEnable = [];
93+ }
8894
8995 foreach ($ routesToEnable as $ route ) {
9096 $ this ->enableRoute ($ route );
You can’t perform that action at this time.
0 commit comments