public function ResourceRoutes::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/rest/src/Routing/ResourceRoutes.php \Drupal\rest\Routing\ResourceRoutes::__construct()
Constructs a RouteSubscriber object.
Parameters
\Drupal\rest\Plugin\Type\ResourcePluginManager $manager: The resource plugin manager.
\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory holding resource settings.
\Psr\Log\LoggerInterface $logger: A logger instance.
File
- core/
modules/ rest/ src/ Routing/ ResourceRoutes.php, line 52 - Contains \Drupal\rest\Routing\ResourceRoutes.
Class
- ResourceRoutes
- Subscriber for REST-style routes.
Namespace
Drupal\rest\RoutingCode
public function __construct(ResourcePluginManager $manager, ConfigFactoryInterface $config, LoggerInterface $logger) {
$this->manager = $manager;
$this->config = $config;
$this->logger = $logger;
}