You are here

function ServiceFactory::adapter in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/DIC/ServiceFactory.php \Drupal\xautoload\DIC\ServiceFactory::adapter()

Parameters

ServiceContainer $services:

Return value

ClassFinderAdapter

File

src/DIC/ServiceFactory.php, line 43

Class

ServiceFactory

Namespace

Drupal\xautoload\DIC

Code

function adapter($services) {
  return new ClassFinderAdapter($services->finder, $services->classMapGenerator);
}