public static function EntryPoint::create in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_server/src/Controller/EntryPoint.php \Drupal\entity_share_server\Controller\EntryPoint::create()
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
Overrides ControllerBase::create
File
- modules/
entity_share_server/ src/ Controller/ EntryPoint.php, line 43
Class
- EntryPoint
- Controller to generate list of channels URLs.
Namespace
Drupal\entity_share_server\ControllerCode
public static function create(ContainerInterface $container) {
$instance = parent::create($container);
$instance->channelManipulator = $container
->get('entity_share_server.channel_manipulator');
$instance->resourceTypeRepository = $container
->get('jsonapi.resource_type.repository');
$instance->eventDispatcher = $container
->get('event_dispatcher');
return $instance;
}