public function add($object);
/** * Assign items * * @param array $routes * * @return bool */ public function addNew($routes) { foreach ($routes as $route) { $this->manager->add($this->manager->createPermission('/' . trim($route, ' /'))); } $this->invalidate(); return true; }