/** * Get the name of the component (i.e. the string that would represent it * in the URL. * * @return string */ public function getName() { return $this->env->inflectComponentName($this->name); }
/** * Get the name of the component (i.e. the string that would represent it * in the URL. * * @return string */ public function getName() { if (!$this->name) { $this->name = $this->env->inflectComponentName(basename($this->getPath())); } return $this->name; }