src/FrameworkHandler.php
public function register($vendor): FrameworkHandler
    {
        //if it's callable
        if (is_callable($vendor)) {
            //it's not a package
            //it's a preprocess
            return $this->preprocess($vendor);
        }

        return $this->registerPackage($vendor);
    }
public function register($vendor): FrameworkHandler
    {
        //if it's callable
        if (is_callable($vendor)) {
            //it's not a package
            //it's a preprocess
            return $this->preprocess($vendor);
        }

        return $this->registerPackage($vendor);
    }
public function register ( $ vendor ) : FrameworkHandler { //if it's callable if ( is_callable ( $ vendor ) ) { //it's not a package //it's a preprocess return $ this -> preprocess ( $ vendor ) ; } return $ this -> registerPackage ( $ vendor ) ; }
Registers and initializes a package

@param *string|callable $vendor The vendor/package name

@return FrameworkHandler
Registers and initializes a package