/**
  * Constructor
  *
  * @param StringType $xmlFile
  * @param Acl $acl
  */
 public function __construct(StringType $xmlFile, Acl $acl)
 {
     parent::__construct();
     $xsdFile = __DIR__ . '/xsd/zendacl.xsd';
     $this->xml = $this->loadDefinition($xmlFile(), $xsdFile);
     $this->acl = $acl;
     $this->processImports(dirname($xmlFile()));
     $this->roles = new RoleBuilder($this->xml, $this->acl);
     $this->resources = new ResourceBuilder($this->xml, $this->acl);
     $this->rules = new RuleBuilder($this->xml, $this->acl);
 }
 /**
  * Constructor
  *
  * @param \DOMDocument $dom
  * @param Acl|AclInterface $acl
  *
  * @internal param \DOMDocument $xquery
  */
 public function __construct(\DOMDocument $dom, Acl $acl)
 {
     $this->dom = $dom;
     $this->acl = $acl;
     parent::__construct();
 }
Example #3
0
 public function __construct(StringType $crcyCode)
 {
     $this->code = $crcyCode;
     parent::__construct();
 }