public function load(ObjectManager $manager) { /*id = 1*/ $resource = new Resource(); $resource->setName("Zf2Acl\\Controller\\Role"); $manager->persist($resource); /*id = 2*/ $resource = new Resource(); $resource->setName("Zf2Acl\\Controller\\Resource"); $manager->persist($resource); /*id = 3*/ $resource = new Resource(); $resource->setName("Zf2Acl\\Controller\\Privilege"); $manager->persist($resource); /*id = 4*/ $resource = new Resource(); $resource->setName("Application\\Controller\\Index"); $manager->persist($resource); /*id = 5*/ $resource = new Resource(); $resource->setName("Zf2User\\Controller\\Auth"); $manager->persist($resource); /*id = 6*/ $resource = new Resource(); $resource->setName("Zf2User\\Controller\\Index"); $manager->persist($resource); $manager->flush(); }
/** * {@inheritDoc} */ public function toArray() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array()); return parent::toArray(); }