dev-master
9999999-devConfiguration Framework
ISC
The Requires
- php >=5.5
The Development Requires
framework configuration config configurator
Configuration Framework
(by Artful Magpie), (*1)
Choclo is a two-step configuration framework., (*2)
This is a PoC. DO NOT USE IT IN PRODUCTION., (*3)
use Guide42\Choclo\Configurator; class MyApp extends Configurator { const PHASE_ROUTES = 60; public function addRoute($name, $pattern, \Closure $controller) { $connect = function() use ($name, $pattern, $controller) { $route = new Route($pattern, array( '_controller' => $controller, )); $routes = $this->getRegistry()->get('Symfony\Component\Routing\RouteCollection'); $routes->add($name, $route); }; $this->register('route-' . $name, $connect, self::PHASE_ROUTES); } }
Configuration Framework
ISC
framework configuration config configurator