src/Commander/MessageManager.php
private function fileReader($filename)
    {
        //Check if the path is defined
        if(empty($this->message_path))
        {
            $this->message_path = __DIR__.DIRECTORY_SEPARATOR.'messages'.DIRECTORY_SEPARATOR;
        }

        //Read message file and return content
        $message = file_get_contents($this->message_path.$filename.'.livia');
        //Return the message
        return $message;
    }
private function fileReader($filename)
    {
        //Check if the path is defined
        if(empty($this->message_path))
        {
            $this->message_path = __DIR__.DIRECTORY_SEPARATOR.'messages'.DIRECTORY_SEPARATOR;
        }

        //Read message file and return content
        $message = file_get_contents($this->message_path.$filename.'.livia');
        //Return the message
        return $message;
    }
private function fileReader ( $ filename ) { //Check if the path is defined if ( empty ( $ this -> message_path ) ) { $ this -> message_path = __DIR__ . DIRECTORY_SEPARATOR . 'messages' . DIRECTORY_SEPARATOR ; } //Read message file and return content $ message = file_get_contents ( $ this -> message_path . $ filename . '.livia' ) ; //Return the message return $ message ; }
Provide a FileReader.

@param string $filename
@return string
Provide a FileReader .