public function get($name)
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException(sprintf('Hook named "%s" is not present', $name));
        }

        return file_get_contents($this->getPath($name));
    }
public function get($name)
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException(sprintf('Hook named "%s" is not present', $name));
        }

        return file_get_contents($this->getPath($name));
    }
public function get ( $ name ) { if ( ! $ this -> has ( $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'Hook named "%s" is not present' , $ name ) ) ; } return file_get_contents ( $ this -> getPath ( $ name ) ) ; }
Fetches content of a hook.

@param string $name Name of the hook

@return string Content of the hook

@throws InvalidArgumentException Hook does not exist
Fetches content of a hook .