protected static function initDependencyInjection()
    {
        /*
         * Create instances of required classes
         * Create instance of Doozr_Di_Map_Static and pass required classes as arguments to constructor
         * The Di-Map builder requires two objects Collection + Importer
         */
        $collection = new Doozr_Di_Collection();
        $importer   = new Doozr_Di_Importer_Json();
        $dependency = new Doozr_Di_Dependency();
        $map        = new Doozr_Di_Map_Static($collection, $importer, $dependency);

        // Generate map from static JSON map of Doozr
        $map->generate(self::$registry->getParameter('doozr.directory.root').'Data/Private/Config/.map.json');

        // Create container and set factory and map
        $container = Doozr_Di_Container::getInstance();
        $container
            ->factory(
                new Doozr_Di_Factory(self::$registry)
            )
            ->map($map);

        // Doozr's only Di container. We don't use any other. All Id's + instances shared static!
        self::$registry->setContainer($container);

        // Important for bootstrap result
        return true;
    }
protected static function initDependencyInjection()
    {
        /*
         * Create instances of required classes
         * Create instance of Doozr_Di_Map_Static and pass required classes as arguments to constructor
         * The Di-Map builder requires two objects Collection + Importer
         */
        $collection = new Doozr_Di_Collection();
        $importer   = new Doozr_Di_Importer_Json();
        $dependency = new Doozr_Di_Dependency();
        $map        = new Doozr_Di_Map_Static($collection, $importer, $dependency);

        // Generate map from static JSON map of Doozr
        $map->generate(self::$registry->getParameter('doozr.directory.root').'Data/Private/Config/.map.json');

        // Create container and set factory and map
        $container = Doozr_Di_Container::getInstance();
        $container
            ->factory(
                new Doozr_Di_Factory(self::$registry)
            )
            ->map($map);

        // Doozr's only Di container. We don't use any other. All Id's + instances shared static!
        self::$registry->setContainer($container);

        // Important for bootstrap result
        return true;
    }
protected static function initDependencyInjection ( ) { /*
         * Create instances of required classes
         * Create instance of Doozr_Di_Map_Static and pass required classes as arguments to constructor
         * The Di-Map builder requires two objects Collection + Importer
         */ $ collection = new Doozr_Di_Collection ( ) ; $ importer = new Doozr_Di_Importer_Json ( ) ; $ dependency = new Doozr_Di_Dependency ( ) ; $ map = new Doozr_Di_Map_Static ( $ collection , $ importer , $ dependency ) ; // Generate map from static JSON map of Doozr $ map -> generate ( self :: $ registry -> getParameter ( 'doozr.directory.root' ) . 'Data/Private/Config/.map.json' ) ; // Create container and set factory and map $ container = Doozr_Di_Container :: getInstance ( ) ; $ container -> factory ( new Doozr_Di_Factory ( self :: $ registry ) ) -> map ( $ map ) ; // Doozr's only Di container. We don't use any other. All Id's + instances shared static! self :: $ registry -> setContainer ( $ container ) ; // Important for bootstrap result return true ; }
Initialize the Dependency-Injection container and load the map for wiring from a static JSON-representation.

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success
@static
Initialize the Dependency - Injection container and load the map for wiring from a static JSON - representation .