src/Phassets/Phassets.php
private function loadDeployer($class)
    {
        if (isset($this->deployersInstances[$class])) {
            return true;
        }

        $deployer = $this->objectsFactory->buildDeployer($class, $this->loadedConfigurator, $this->loadedCacheAdapter);

        if ($deployer === false) {
            $this->loadedLogger->warning('Could not load ' . $class . ' deployer.');

            return false;
        }

        try {
            $deployer->isSupported();
        } catch (PhassetsInternalException $e) {
            $this->loadedLogger->warning($class . ' deployer is not supported: ' . $e);
        }

        $this->deployersInstances[$class] = $deployer;
        $this->loadedLogger->debug('Deployer ' . $class . ' found & loaded.');

        return true;
    }
private function loadDeployer($class)
    {
        if (isset($this->deployersInstances[$class])) {
            return true;
        }

        $deployer = $this->objectsFactory->buildDeployer($class, $this->loadedConfigurator, $this->loadedCacheAdapter);

        if ($deployer === false) {
            $this->loadedLogger->warning('Could not load ' . $class . ' deployer.');

            return false;
        }

        try {
            $deployer->isSupported();
        } catch (PhassetsInternalException $e) {
            $this->loadedLogger->warning($class . ' deployer is not supported: ' . $e);
        }

        $this->deployersInstances[$class] = $deployer;
        $this->loadedLogger->debug('Deployer ' . $class . ' found & loaded.');

        return true;
    }
private function loadDeployer ( $ class ) { if ( isset ( $ this -> deployersInstances [ $ class ] ) ) { return true ; } $ deployer = $ this -> objectsFactory -> buildDeployer ( $ class , $ this -> loadedConfigurator , $ this -> loadedCacheAdapter ) ; if ( $ deployer === false ) { $ this -> loadedLogger -> warning ( 'Could not load ' . $ class . ' deployer.' ) ; return false ; } try { $ deployer -> isSupported ( ) ; } catch ( PhassetsInternalException $ e ) { $ this -> loadedLogger -> warning ( $ class . ' deployer is not supported: ' . $ e ) ; } $ this -> deployersInstances [ $ class ] = $ deployer ; $ this -> loadedLogger -> debug ( 'Deployer ' . $ class . ' found & loaded.' ) ; return true ; }
Try to create & load an instance of a given Deployer class name.

@param string $class
@return bool Whether the loading succeeded or not
Try to create & load an instance of a given Deployer class name .