2017 © Pedro PelĂĄez
 

library choclo

Configuration Framework

image

guide42/choclo

Configuration Framework

  • Thursday, December 10, 2015
  • by joksnet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Choclo

by  Artful Magpie (by Artful Magpie), (*1)

Choclo is a two-step configuration framework., (*2)

This is a PoC. DO NOT USE IT IN PRODUCTION., (*3)

Usage

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);
    }
}

Badges

Latest Stable Version Build Status Coverage Status, (*4)

The Versions

10/12 2015

dev-master

9999999-dev

Configuration Framework

  Sources   Download

ISC

The Requires

  • php >=5.5

 

The Development Requires

framework configuration config configurator