protected function detectRoot()
    {
        $facade = $this->facade;

        try {
            //If possible, get the facade root
            if (method_exists($facade, 'getFacadeRoot')) {
                $root = get_class($facade::getFacadeRoot());
            } else {
                $root = $facade;
            }

            //If it doesn't exist, skip it
            if (!class_exists($root) && !interface_exists($root)) {
                return;
            }

            $this->root = $root;

            //When the database connection is not set, some classes will be skipped
        } catch (\PDOException $e) {
            $this->error(
                "PDOException: " . $e->getMessage() .
                "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." .
                " Skipping $facade."
            );
        } catch (\Exception $e) {
            $this->error("Exception: " . $e->getMessage() . "\nSkipping $facade.");
        }
    }
protected function detectRoot()
    {
        $facade = $this->facade;

        try {
            //If possible, get the facade root
            if (method_exists($facade, 'getFacadeRoot')) {
                $root = get_class($facade::getFacadeRoot());
            } else {
                $root = $facade;
            }

            //If it doesn't exist, skip it
            if (!class_exists($root) && !interface_exists($root)) {
                return;
            }

            $this->root = $root;

            //When the database connection is not set, some classes will be skipped
        } catch (\PDOException $e) {
            $this->error(
                "PDOException: " . $e->getMessage() .
                "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." .
                " Skipping $facade."
            );
        } catch (\Exception $e) {
            $this->error("Exception: " . $e->getMessage() . "\nSkipping $facade.");
        }
    }
protected function detectRoot ( ) { $ facade = $ this -> facade ; try { //If possible, get the facade root if ( method_exists ( $ facade , 'getFacadeRoot' ) ) { $ root = get_class ( $ facade :: getFacadeRoot ( ) ) ; } else { $ root = $ facade ; } //If it doesn't exist, skip it if ( ! class_exists ( $ root ) && ! interface_exists ( $ root ) ) { return ; } $ this -> root = $ root ; //When the database connection is not set, some classes will be skipped } catch ( \ PDOException $ e ) { $ this -> error ( "PDOException: " . $ e -> getMessage ( ) . "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." . " Skipping $facade." ) ; } catch ( \ Exception $ e ) { $ this -> error ( "Exception: " . $ e -> getMessage ( ) . "\nSkipping $facade." ) ; } }
Get the real root of a facade

@return bool|string
Get the real root of a facade