/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Register the decorators foreach ($config->decorators as $decorator) { $this->addDecorator($decorator); } }
/** * Constructor. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Set the filters $this->__authenticator_queue = $this->getObject('lib:object.queue'); //Add the authenticators $authenticators = (array) ObjectConfig::unbox($config->authenticators); foreach ($authenticators as $key => $value) { if (is_numeric($key)) { $this->addAuthenticator($value); } else { $this->addAuthenticator($key, $value); } } }
/** * Constructor. * * @param ObjectConfig $config Configuration options */ public function __construct(ObjectConfig $config) { parent::__construct($config); $this->_permission = $config->permission; }