/** * * @param type $container A container acting as source fro \MUtil_Registry_Source * @param array $dirs The directories where to look for requested classes */ public function __construct($container, array $dirs) { parent::__construct($container, $dirs); $events = $container->loader->getEvents(); // Make sure the tracker is known $this->addRegistryContainer(array('tracker' => $this, 'events' => $events)); }
/** * * @param type $container A container acting as source fro \MUtil_Registry_Source * @param array $dirs The directories where to look for requested classes */ public function __construct($container, array $dirs) { parent::__construct($container, $dirs); // Make sure the export is known $this->addRegistryContainer(array('export' => $this)); }
/** * Called after the check that all required registry values * have been set correctly has run. * * This function is no needed if the classes are setup correctly * * @return void */ public function afterRegistry() { parent::afterRegistry(); $this->initTranslateable(); }
/** * Sets the source of variables and the first directory for snippets * * @param mixed $source Something that is or can be made into \MUtil_Registry_SourceInterface, otherwise * \Zend_Registry is used. * @param array $dirs prefix => pathname The inital paths to load from */ public function __construct($source = null, array $dirs = array()) { parent::__construct($source, $dirs); $this->addPrefixPath('MUtil_Snippets_Standard', MUTIL_LIBRARY_DIR . '/MUtil/Snippets/Standard', false); }