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

        $filter = $this->objectsFactory->buildFilter($class, $this->loadedConfigurator);

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

            return false;
        }

        $this->filtersInstances[$class] = $filter;
        $this->loadedLogger->debug('Filter ' . $class . ' found & loaded.');

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

        $filter = $this->objectsFactory->buildFilter($class, $this->loadedConfigurator);

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

            return false;
        }

        $this->filtersInstances[$class] = $filter;
        $this->loadedLogger->debug('Filter ' . $class . ' found & loaded.');

        return true;
    }
private function loadFilter ( $ class ) { if ( isset ( $ this -> filtersInstances [ $ class ] ) ) { return true ; } $ filter = $ this -> objectsFactory -> buildFilter ( $ class , $ this -> loadedConfigurator ) ; if ( $ filter === false ) { $ this -> loadedLogger -> warning ( 'Could not load ' . $ class . ' filter.' ) ; return false ; } $ this -> filtersInstances [ $ class ] = $ filter ; $ this -> loadedLogger -> debug ( 'Filter ' . $ class . ' found & loaded.' ) ; return true ; }
Try to create & load an instance of a given Filter class name.

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