/** * @Service(url, { * }, {shared: true}) */ function url_service($config) { $router = S::get("dispatcher"); return function ($name, array $args = array()) use($router) { return $router->getRoute($name, $args); }; }
public function run() { echo \Service\Service::test() . PHP_EOL; }
public function serviceAction() { Service::composerTest(); }