src/ReflectionEngine.php
public static function locateClassFile($fullClassName)
    {
        if (class_exists($fullClassName, false)
            || interface_exists($fullClassName, false)
            || trait_exists($fullClassName, false)
        ) {
            $refClass      = new \ReflectionClass($fullClassName);
            $classFileName = $refClass->getFileName();
        } else {
            $classFileName = self::$locator->locateClass($fullClassName);
        }

        if (!$classFileName) {
            throw new \InvalidArgumentException("Class $fullClassName was not found by locator");
        }

        return $classFileName;
    }
public static function locateClassFile($fullClassName)
    {
        if (class_exists($fullClassName, false)
            || interface_exists($fullClassName, false)
            || trait_exists($fullClassName, false)
        ) {
            $refClass      = new \ReflectionClass($fullClassName);
            $classFileName = $refClass->getFileName();
        } else {
            $classFileName = self::$locator->locateClass($fullClassName);
        }

        if (!$classFileName) {
            throw new \InvalidArgumentException("Class $fullClassName was not found by locator");
        }

        return $classFileName;
    }
public static function locateClassFile ( $ fullClassName ) { if ( class_exists ( $ fullClassName , false ) || interface_exists ( $ fullClassName , false ) || trait_exists ( $ fullClassName , false ) ) { $ refClass = new \ ReflectionClass ( $ fullClassName ) ; $ classFileName = $ refClass -> getFileName ( ) ; } else { $ classFileName = self :: $ locator -> locateClass ( $ fullClassName ) ; } if ( ! $ classFileName ) { throw new \ InvalidArgumentException ( "Class $fullClassName was not found by locator" ) ; } return $ classFileName ; }
Locates a file name for class

@param string $fullClassName Full name of the class

@return string
Locates a file name for class