src/Libraries/Events.php 1 location
|
@@ 81-89 (lines=9) @@
|
| 78 |
|
{ |
| 79 |
|
$config = _::getLibrary('Cervo/Config'); |
| 80 |
|
|
| 81 |
|
foreach (glob($config->get('Cervo/Application/Directory') . '*' . \DS . $config->get('Cervo/Application/EventsPath') . '*.php', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
| 82 |
|
|
| 83 |
|
$function = require $file; |
| 84 |
|
|
| 85 |
|
if (is_callable($function)) { |
| 86 |
|
$function($this); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
src/Libraries/Router.php 1 location
|
@@ 86-94 (lines=9) @@
|
| 83 |
|
new DataGenerator\GroupCountBased() |
| 84 |
|
); |
| 85 |
|
|
| 86 |
|
foreach (glob($config->get('Cervo/Application/Directory') . '*' . \DS . 'Router.php', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
| 87 |
|
|
| 88 |
|
$function = require $file; |
| 89 |
|
|
| 90 |
|
if (is_callable($function)) { |
| 91 |
|
$function($this); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
} |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
/** |