src/Locator.php
public function get($name)
    {
        if (! $this->has($name)) {
            throw new Exception\HelperNotFoundException("Helper '$name' not found");
        }

        if (! isset($this->helpers[$name])) {
            $factory = $this->factories[$name];
            $this->helpers[$name] = $factory();
        }

        return $this->helpers[$name];
    }
public function get($name)
    {
        if (! $this->has($name)) {
            throw new Exception\HelperNotFoundException("Helper '$name' not found");
        }

        if (! isset($this->helpers[$name])) {
            $factory = $this->factories[$name];
            $this->helpers[$name] = $factory();
        }

        return $this->helpers[$name];
    }
public function get ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new Exception \ HelperNotFoundException ( "Helper '$name' not found" ) ; } if ( ! isset ( $ this -> helpers [ $ name ] ) ) { $ factory = $ this -> factories [ $ name ] ; $ this -> helpers [ $ name ] = $ factory ( ) ; } return $ this -> helpers [ $ name ] ; }
gets a helper

@param string $name name of helper

@return mixed
@throws Exception if factory is not set

@access public
gets a helper