src/Controller/BacktraceController.php
public function backtraceAction(array $backtrace = null)
    {
        if ($this->pool->emergencyHandler->checkMaxCall() === true) {
            // Called too often, we might get into trouble here!
            return $this;
        }

        $this->pool->reset();

        // Find caller.
        $caller = $this->callerFinder->findCaller(static::TRACE_BACKTRACE, array());
        $this->pool->scope->setScope($caller[static::TRACE_VARNAME]);

        $analysis = $this->pool
            ->createClass('Brainworxx\\Krexx\\Analyse\\Routing\\Process\\ProcessBacktrace')
            ->process($backtrace);

        // Detect the encoding on the start-chunk-string of the analysis
        // for a complete encoding picture.
        $this->pool->chunks->detectEncoding($analysis);

        // Now that our analysis is done, we must check if there was an emergency
        // break.
        if ($this->pool->emergencyHandler->checkEmergencyBreak() === true) {
            return $this;
        }

        // Add the caller as metadata to the chunks class. It will be saved as
        // additional info, in case we are logging to a file.
        $this->pool->chunks->addMetadata($caller);

        // We need to get the footer before the generating of the header,
        // because we need to display messages in the header from the configuration.
        $footer = $this->outputFooter($caller);

        $this->outputService
            ->addChunkString($this->pool->render->renderHeader(static::TRACE_BACKTRACE, $this->outputCssAndJs()))
            ->addChunkString($analysis)
            ->addChunkString($footer)
            ->finalize();

        return $this;
    }
public function backtraceAction(array $backtrace = null)
    {
        if ($this->pool->emergencyHandler->checkMaxCall() === true) {
            // Called too often, we might get into trouble here!
            return $this;
        }

        $this->pool->reset();

        // Find caller.
        $caller = $this->callerFinder->findCaller(static::TRACE_BACKTRACE, array());
        $this->pool->scope->setScope($caller[static::TRACE_VARNAME]);

        $analysis = $this->pool
            ->createClass('Brainworxx\\Krexx\\Analyse\\Routing\\Process\\ProcessBacktrace')
            ->process($backtrace);

        // Detect the encoding on the start-chunk-string of the analysis
        // for a complete encoding picture.
        $this->pool->chunks->detectEncoding($analysis);

        // Now that our analysis is done, we must check if there was an emergency
        // break.
        if ($this->pool->emergencyHandler->checkEmergencyBreak() === true) {
            return $this;
        }

        // Add the caller as metadata to the chunks class. It will be saved as
        // additional info, in case we are logging to a file.
        $this->pool->chunks->addMetadata($caller);

        // We need to get the footer before the generating of the header,
        // because we need to display messages in the header from the configuration.
        $footer = $this->outputFooter($caller);

        $this->outputService
            ->addChunkString($this->pool->render->renderHeader(static::TRACE_BACKTRACE, $this->outputCssAndJs()))
            ->addChunkString($analysis)
            ->addChunkString($footer)
            ->finalize();

        return $this;
    }
public function backtraceAction ( array $ backtrace = null ) { if ( $ this -> pool -> emergencyHandler -> checkMaxCall ( ) === true ) { // Called too often, we might get into trouble here! return $ this ; } $ this -> pool -> reset ( ) ; // Find caller. $ caller = $ this -> callerFinder -> findCaller ( static :: TRACE_BACKTRACE , array ( ) ) ; $ this -> pool -> scope -> setScope ( $ caller [ static :: TRACE_VARNAME ] ) ; $ analysis = $ this -> pool -> createClass ( 'Brainworxx\\Krexx\\Analyse\\Routing\\Process\\ProcessBacktrace' ) -> process ( $ backtrace ) ; // Detect the encoding on the start-chunk-string of the analysis // for a complete encoding picture. $ this -> pool -> chunks -> detectEncoding ( $ analysis ) ; // Now that our analysis is done, we must check if there was an emergency // break. if ( $ this -> pool -> emergencyHandler -> checkEmergencyBreak ( ) === true ) { return $ this ; } // Add the caller as metadata to the chunks class. It will be saved as // additional info, in case we are logging to a file. $ this -> pool -> chunks -> addMetadata ( $ caller ) ; // We need to get the footer before the generating of the header, // because we need to display messages in the header from the configuration. $ footer = $ this -> outputFooter ( $ caller ) ; $ this -> outputService -> addChunkString ( $ this -> pool -> render -> renderHeader ( static :: TRACE_BACKTRACE , $ this -> outputCssAndJs ( ) ) ) -> addChunkString ( $ analysis ) -> addChunkString ( $ footer ) -> finalize ( ) ; return $ this ; }
Outputs a backtrace.

@param array|null $backtrace
An already existing backtrace.

@return $this
Return $this for chaining.
Outputs a backtrace .