src/Phassets/Factory.php
public function buildDeployer($class, Configurator $configurator, CacheAdapter $cacheAdapter)
    {
        if (!class_exists($class) || !is_subclass_of($class, Deployer::class)) {
            $class = "\\Phassets\\Deployers\\$class";
        }

        if (class_exists($class) && is_subclass_of($class, Deployer::class)) {
            return new $class($configurator, $cacheAdapter);
        }

        return false;
    }
public function buildDeployer($class, Configurator $configurator, CacheAdapter $cacheAdapter)
    {
        if (!class_exists($class) || !is_subclass_of($class, Deployer::class)) {
            $class = "\\Phassets\\Deployers\\$class";
        }

        if (class_exists($class) && is_subclass_of($class, Deployer::class)) {
            return new $class($configurator, $cacheAdapter);
        }

        return false;
    }
public function buildDeployer ( $ class , Configurator $ configurator , CacheAdapter $ cacheAdapter ) { if ( ! class_exists ( $ class ) || ! is_subclass_of ( $ class , Deployer :: class ) ) { $ class = "\\Phassets\\Deployers\\$class" ; } if ( class_exists ( $ class ) && is_subclass_of ( $ class , Deployer :: class ) ) { return new $ class ( $ configurator , $ cacheAdapter ) ; } return false ; }
Creates a Deployer instance.

@param string $class Fully qualified class name of a Deployer class
@param Configurator $configurator Currently used Configurator of Phassets
@param CacheAdapter $cacheAdapter Currently used CacheAdapter of Phassets

@return Deployer|bool Created instance of the provided Deployer; false on failure
Creates a Deployer instance .