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 18
18
use CodeIgniter \Commands \Utilities \Routes \AutoRouterImproved \AutoRouteCollector as AutoRouteCollectorImproved ;
19
19
use CodeIgniter \Commands \Utilities \Routes \FilterCollector ;
20
20
use CodeIgniter \Commands \Utilities \Routes \SampleURIGenerator ;
21
+ use CodeIgniter \Exceptions \PageNotFoundException ;
21
22
use Config \Services ;
22
23
23
24
/**
@@ -99,7 +100,15 @@ public function run(array $params)
99
100
foreach ($ routes as $ route => $ handler ) {
100
101
if (is_string ($ handler ) || $ handler instanceof Closure) {
101
102
$ 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
+ }
103
112
104
113
$ tbody [] = [
105
114
strtoupper ($ method ),
You can’t perform that action at this time.
0 commit comments