public function Controller::__construct in Schemata 8
Controller constructor.
Parameters
\Symfony\Component\Serializer\SerializerInterface $serializer: The serializer service.
\Drupal\schemata\SchemaFactory $schema_factory: The schema factory.
\Drupal\Core\Cache\CacheableResponseInterface $response: The cacheable response.
File
- src/
Controller/ Controller.php, line 50
Class
- Controller
- Contains callback methods for dynamic routes.
Namespace
Drupal\schemata\ControllerCode
public function __construct(SerializerInterface $serializer, SchemaFactory $schema_factory, CacheableResponseInterface $response) {
$this->serializer = $serializer;
$this->schemaFactory = $schema_factory;
$this->response = $response;
}