Exemplo n.º 1
0
 /**
  *
  * @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));
 }
Exemplo n.º 2
0
 /**
  *
  * @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));
 }
Exemplo n.º 3
0
 /**
  *
  * @param type $container A container acting as source for \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 tracker is known
     $this->addRegistryContainer(array('agenda' => $this));
 }
 /**
  * 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);
 }