You are here

function ServiceFactory::finder in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/DIC/ServiceFactory.php \Drupal\xautoload\DIC\ServiceFactory::finder()

The class finder (alias for 'classFinder').

Parameters

ServiceContainer $services:

Return value

ClassFinderInterface Object that can find classes, and provides methods to register namespaces and prefixes. Notes:

  • The findClass() method expects an InjectedAPI argument.
  • namespaces are only supported since PHP 5.3

File

lib/DIC/ServiceFactory.php, line 115

Class

ServiceFactory

Namespace

Drupal\xautoload\DIC

Code

function finder($services) {
  return new ClassFinder();
}