public static function ParameterFactoryInterface::create in JSON-RPC 8
Same name and namespace in other branches
- 2.x src/ParameterFactoryInterface.php \Drupal\jsonrpc\ParameterFactoryInterface::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
\Drupal\jsonrpc\ParameterDefinitionInterface $definition: The parameter definition for parameters of this type.
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
1 method overrides ParameterFactoryInterface::create()
- ParameterFactoryBase::create in src/
ParameterFactory/ ParameterFactoryBase.php - Instantiates a new instance of this class.
File
- src/
ParameterFactoryInterface.php, line 36
Class
- ParameterFactoryInterface
- Interface for all parameter factories.
Namespace
Drupal\jsonrpcCode
public static function create(ParameterDefinitionInterface $definition, ContainerInterface $container);