src/I18n/PhpMessageSource.php
protected function loadMessagesFromFile($messageFile)
    {
        if (is_file($messageFile)) {
            $messages = include $messageFile;
            if (!is_array($messages)) {
                $messages = [];
            }

            return resolve($messages);
        }

        return reject(new Reaction\Exceptions\Error("Message file '{$messageFile}' not found"));
    }
protected function loadMessagesFromFile($messageFile)
    {
        if (is_file($messageFile)) {
            $messages = include $messageFile;
            if (!is_array($messages)) {
                $messages = [];
            }

            return resolve($messages);
        }

        return reject(new Reaction\Exceptions\Error("Message file '{$messageFile}' not found"));
    }
Loads the message translation for the specified language and category or returns null if file doesn't exist.

@param string $messageFile path to message file
@return ExtendedPromiseInterface with array of messages or null if file not found