Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- Dispatcher::registerMethodFacade('run', function($params, $chain)
- {
- Environment::set('request', $params['request']);
- foreach(array_reverse(Lib::get()) as $name => $config)
- {
- if($name === 'ILLI')
- continue;
- $file = "{$config['path']}/config/routes.php";
- file_exists($file) ? call_user_func(function() use ($file) { include $file; }) : null;
- }
- return $chain->next($params, $chain);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement