src/Parser.php
protected function startup($parser)
    {
        $reflect = new ReflectionClass($parser);

        $this->configBase = 'parsers.' . $reflect->getShortName();

        if (empty(config("{$this->configBase}.parser.name"))) {
            $this->failed("Required parser.name is missing in parser configuration");
        }

        Log::info(
            get_class($this) . ': ' .
            'Received message from: ' . $this->parsedMail->getHeader('from') . " with subject: '" .
            $this->parsedMail->getHeader('subject') . "' arrived at parser: " .
            config("{$this->configBase}.parser.name")
        );

    }
protected function startup($parser)
    {
        $reflect = new ReflectionClass($parser);

        $this->configBase = 'parsers.' . $reflect->getShortName();

        if (empty(config("{$this->configBase}.parser.name"))) {
            $this->failed("Required parser.name is missing in parser configuration");
        }

        Log::info(
            get_class($this) . ': ' .
            'Received message from: ' . $this->parsedMail->getHeader('from') . " with subject: '" .
            $this->parsedMail->getHeader('subject') . "' arrived at parser: " .
            config("{$this->configBase}.parser.name")
        );

    }
protected function startup ( $ parser ) { $ reflect = new ReflectionClass ( $ parser ) ; $ this -> configBase = 'parsers.' . $ reflect -> getShortName ( ) ; if ( empty ( config ( "{$this->configBase}.parser.name" ) ) ) { $ this -> failed ( "Required parser.name is missing in parser configuration" ) ; } Log :: info ( get_class ( $ this ) . ': ' . 'Received message from: ' . $ this -> parsedMail -> getHeader ( 'from' ) . " with subject: '" . $ this -> parsedMail -> getHeader ( 'subject' ) . "' arrived at parser: " . config ( "{$this->configBase}.parser.name" ) ) ; }
Generalize the local config based on the parser class object.

@param object $parser
@return void
Generalize the local config based on the parser class object .