Exemple #1
0
 protected function __construct($namespace = null)
 {
     parent::__construct($namespace);
     // перечитываем дефолтные опции конфиругации
     $this->_Proxy = new Proxy();
     $this->_Proxy->configure();
 }
 /**
  * @param object $thing A newly instantiated thing to configure.
  */
 public function configure($thing)
 {
     // We will get called for non-Configurables due to it being impossible to work out whether or not things will
     // actually implement this interface at context compilation time. The bean factory falls back to using a
     // configurable if it isn't definitely sure what the class of the instantiated bean will be.
     if ($thing instanceof Configurable) {
         $thing->configure();
     }
 }
Exemple #3
0
 /**
  * @param object $provider
  * @param IDictionary $shared
  */
 public function configure($provider, IDictionary $shared)
 {
     $provider->configure($shared);
 }