示例#1
0
文件: url.php 项目: crodas/framework
/**
 *  @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);
    };
}
示例#2
0
文件: cli.php 项目: zer0131/OneFox
 public function run()
 {
     echo \Service\Service::test() . PHP_EOL;
 }
示例#3
0
文件: Index.php 项目: zer0131/OneFox
 public function serviceAction()
 {
     Service::composerTest();
 }