src/Loader.php
protected function autoloadPaths($class) {
    $class = static::unprefixClass($class);
    // If the class that PHP is trying to find is not in the class map, built
    // from the composer configuration, then bail.
    if (!in_array($class, array_keys($this->classMap))) {
      return FALSE;
    }
    try {
      $resolver = $this->tokenResolverFactory->factory($this->classMap[$class]);
      $finder = $resolver->resolve();
      // Have the path finder require the file and return TRUE or FALSE if it
      // found the file or not.
      $finder->requireFile($this->seed);
      return TRUE;
    }
    catch (ClassLoaderException $e) {
      // If there was an error, inform PHP that the class could not be found.
      return FALSE;
    }
  }
protected function autoloadPaths($class) {
    $class = static::unprefixClass($class);
    // If the class that PHP is trying to find is not in the class map, built
    // from the composer configuration, then bail.
    if (!in_array($class, array_keys($this->classMap))) {
      return FALSE;
    }
    try {
      $resolver = $this->tokenResolverFactory->factory($this->classMap[$class]);
      $finder = $resolver->resolve();
      // Have the path finder require the file and return TRUE or FALSE if it
      // found the file or not.
      $finder->requireFile($this->seed);
      return TRUE;
    }
    catch (ClassLoaderException $e) {
      // If there was an error, inform PHP that the class could not be found.
      return FALSE;
    }
  }
protected function autoloadPaths ( $ class ) { $ class = static :: unprefixClass ( $ class ) ; // If the class that PHP is trying to find is not in the class map, built // from the composer configuration, then bail. if ( ! in_array ( $ class , array_keys ( $ this -> classMap ) ) ) { return FALSE ; } try { $ resolver = $ this -> tokenResolverFactory -> factory ( $ this -> classMap [ $ class ] ) ; $ finder = $ resolver -> resolve ( ) ; // Have the path finder require the file and return TRUE or FALSE if it // found the file or not. $ finder -> requireFile ( $ this -> seed ) ; return TRUE ; } catch ( ClassLoaderException $ e ) { // If there was an error, inform PHP that the class could not be found. return FALSE ; } }
Helper function to autoload path based files.

@param string $class
The requested class.

@return bool
TRUE if the class was found. FALSE otherwise.
Helper function to autoload path based files .