Skip to content
Snippets Groups Projects

Issue-3362322: PHP 8.2 deprecation fixes.

Files
2
@@ -12,10 +12,32 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -12,10 +12,32 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
*/
class OpenApiListController extends ControllerBase {
class OpenApiListController extends ControllerBase {
public function __construct(
/**
private readonly PluginManagerInterface $openapiGeneratorManager,
* Current Generator plugin manager.
private readonly ?PluginManagerInterface $openapiUiManager,
*
) {}
* @var \Drupal\Component\Plugin\PluginManagerInterface
 
*/
 
public $openapiGeneratorManager;
 
 
/**
 
* UI library plugin manager instance. NULL if the module is not enabled.
 
*
 
* @var \Drupal\Component\Plugin\PluginManagerInterface|null
 
*/
 
private ?PluginManagerInterface $openapiUiManager;
 
 
/**
 
* Creates a new OpenApiListController.
 
*
 
* @param \Drupal\Component\Plugin\PluginManagerInterface $openapi_generator_manager
 
* The current openapi generator plugin manager instance.
 
* @param ?\Drupal\Component\Plugin\PluginManagerInterface $openapi_ui_manager
 
* ui library plugin manager instance. NULL if the module is not enabled.
 
*/
 
public function __construct(PluginManagerInterface $openapi_generator_manager, PluginManagerInterface $openapi_ui_manager = NULL) {
 
$this->openapiGeneratorManager = $openapi_generator_manager;
 
$this->openapiUiManager = $openapi_ui_manager;
 
}
/**
/**
* {@inheritdoc}
* {@inheritdoc}
Loading