function ApiController::create
Overrides AutowireTrait::create
File
-
core/
modules/ package_manager/ tests/ modules/ package_manager_test_api/ src/ ApiController.php, line 40
Class
- ApiController
- Provides API endpoints to interact with a stage directory in functional test.
Namespace
Drupal\package_manager_test_apiCode
public static function create(ContainerInterface $container) {
$stage = new ControllerStage($container->get(PathLocator::class), $container->get(BeginnerInterface::class), $container->get(StagerInterface::class), $container->get(CommitterInterface::class), $container->get(QueueFactory::class), $container->get('event_dispatcher'), $container->get('tempstore.shared'), $container->get('datetime.time'), $container->get(PathFactoryInterface::class), $container->get(FailureMarker::class));
return new static($stage);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.