public function leaveBreadcrumb($name, $type = null, array $metaData = [])
    {
        try {
            $name = (new ReflectionClass($name))->getShortName();
        } catch (ReflectionException $e) {
            //
        }

        $name = substr((string) $name, 0, Breadcrumb::MAX_LENGTH);

        $type = in_array($type, Breadcrumb::getTypes(), true) ? $type : Breadcrumb::MANUAL_TYPE;

        $this->recorder->record(new Breadcrumb($name, $type, $metaData));
    }
public function leaveBreadcrumb($name, $type = null, array $metaData = [])
    {
        try {
            $name = (new ReflectionClass($name))->getShortName();
        } catch (ReflectionException $e) {
            //
        }

        $name = substr((string) $name, 0, Breadcrumb::MAX_LENGTH);

        $type = in_array($type, Breadcrumb::getTypes(), true) ? $type : Breadcrumb::MANUAL_TYPE;

        $this->recorder->record(new Breadcrumb($name, $type, $metaData));
    }
public function leaveBreadcrumb ( $ name , $ type = null , array $ metaData = [ ] ) { try { $ name = ( new ReflectionClass ( $ name ) ) -> getShortName ( ) ; } catch ( ReflectionException $ e ) { // } $ name = substr ( ( string ) $ name , 0 , Breadcrumb :: MAX_LENGTH ) ; $ type = in_array ( $ type , Breadcrumb :: getTypes ( ) , true ) ? $ type : Breadcrumb :: MANUAL_TYPE ; $ this -> recorder -> record ( new Breadcrumb ( $ name , $ type , $ metaData ) ) ; }
Record the given breadcrumb.

@param string      $name     the name of the breadcrumb
@param string|null $type     the type of breadcrumb
@param array       $metaData additional information about the breadcrumb

@return void
Record the given breadcrumb .