File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
system/Commands/Utilities Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1818use CodeIgniter \Commands \Utilities \Routes \AutoRouterImproved \AutoRouteCollector as AutoRouteCollectorImproved ;
1919use CodeIgniter \Commands \Utilities \Routes \FilterCollector ;
2020use CodeIgniter \Commands \Utilities \Routes \SampleURIGenerator ;
21+ use CodeIgniter \Exceptions \PageNotFoundException ;
2122use Config \Services ;
2223
2324/**
@@ -99,7 +100,15 @@ public function run(array $params)
99100 foreach ($ routes as $ route => $ handler ) {
100101 if (is_string ($ handler ) || $ handler instanceof Closure) {
101102 $ sampleUri = $ uriGenerator ->get ($ route );
102- $ filters = $ filterCollector ->get ($ method , $ sampleUri );
103+
104+ try {
105+ $ filters = $ filterCollector ->get ($ method , $ sampleUri );
106+ } catch (PageNotFoundException $ e ) {
107+ $ filters = [
108+ 'before ' => ['<unknown> ' ],
109+ 'after ' => ['<unknown> ' ],
110+ ];
111+ }
103112
104113 $ tbody [] = [
105114 strtoupper ($ method ),
You can’t perform that action at this time.
0 commit comments