Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getActions()
 {
     if (null !== $this->actionCollection) {
         return $this->actionCollection;
     }
     $this->actionCollection = $this->loader->loadActions();
     return $this->actionCollection;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function loadActions()
 {
     $actions = $this->cache->get($this->key);
     if ($actions) {
         return $actions;
     }
     $actions = $this->loader->loadActions();
     $this->cache->set($this->key, $actions);
     return $actions;
 }