CLI::
write(' filter:check put products/1'
);
return EXIT_ERROR;
} $method =
strtolower($params[0
]);
$route =
$params[1
];
// Load Routes
Services::
routes()->
loadRoutes();
$filterCollector =
new FilterCollector();
$filters =
$filterCollector->
get($method,
$route);
// PageNotFoundException
if ($filters['before'
] ===
['<unknown>'
]) { CLI::
error( "Can't find a route: " .
CLI::
color( '"' .
strtoupper($method) . ' ' .
$route . '"',
'black',
'light_gray'
),