private function requireCachedClasses()
    {
        $classPath = $this->cachePath;
        if (is_dir($classPath)) {
            $finder = new Finder();
            $actionManagerFiles = $finder->files()->depth(1)->name('*.php')->in($classPath);
            foreach ($actionManagerFiles as $actionManagerFile) {
                $classFileName = (string)$actionManagerFile;
                $classContents = file_get_contents($classFileName);
                preg_match('/namespace ([\w\\\]+);.*?class ([\w]+).*?{/s', $classContents, $match);
                if (isset($match[1]) && isset($match[2])) {
                    $class = $match[1] . '\\' . $match[2];
                    if (!in_array($class, get_declared_classes())) @require_once $classFileName;
                }
            }
        }
    }
private function requireCachedClasses()
    {
        $classPath = $this->cachePath;
        if (is_dir($classPath)) {
            $finder = new Finder();
            $actionManagerFiles = $finder->files()->depth(1)->name('*.php')->in($classPath);
            foreach ($actionManagerFiles as $actionManagerFile) {
                $classFileName = (string)$actionManagerFile;
                $classContents = file_get_contents($classFileName);
                preg_match('/namespace ([\w\\\]+);.*?class ([\w]+).*?{/s', $classContents, $match);
                if (isset($match[1]) && isset($match[2])) {
                    $class = $match[1] . '\\' . $match[2];
                    if (!in_array($class, get_declared_classes())) @require_once $classFileName;
                }
            }
        }
    }
private function requireCachedClasses ( ) { $ classPath = $ this -> cachePath ; if ( is_dir ( $ classPath ) ) { $ finder = new Finder ( ) ; $ actionManagerFiles = $ finder -> files ( ) -> depth ( 1 ) -> name ( '*.php' ) -> in ( $ classPath ) ; foreach ( $ actionManagerFiles as $ actionManagerFile ) { $ classFileName = ( string ) $ actionManagerFile ; $ classContents = file_get_contents ( $ classFileName ) ; preg_match ( '/namespace ([\w\\\]+);.*?class ([\w]+).*?{/s' , $ classContents , $ match ) ; if ( isset ( $ match [ 1 ] ) && isset ( $ match [ 2 ] ) ) { $ class = $ match [ 1 ] . '\\' . $ match [ 2 ] ; if ( ! in_array ( $ class , get_declared_classes ( ) ) ) @ require_once $ classFileName ; } } } }
Requires the cached classes when needed
Requires the cached classes when needed