We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://www.drupal.org/node/3387233
Introduced in branch/version: 10.3.x / 10.3.0
The following classes now require the datetime.time service (\Drupal\Component\Datetime\TimeInterface $time) as a constructor parameter.
\Drupal\Component\Datetime\TimeInterface $time
These changes are needed to replace calls to the deprecated REQUEST_TIME global constant. (https://www.drupal.org/node/2785211)
REQUEST_TIME
For all of the above constructors the protected TimeInterface $time parameter is added as the last of the constructor parameters.
protected TimeInterface $time
Exception to the parameter order, due to optional parameters, are:
Before: public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, $max_rows = NULL) After: public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, protected TimeInterface $time, $max_rows = NULL)
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, $max_rows = NULL)
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, protected TimeInterface $time, $max_rows = NULL)
Before: public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, Settings $settings = NULL) After: public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, protected TimeInterface $time, Settings $settings = NULL)
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, Settings $settings = NULL)
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, protected TimeInterface $time, Settings $settings = NULL)
Before: public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, $http_response_debug_cacheability_headers = FALSE) After: public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, protected TimeInterface $time, $http_response_debug_cacheability_headers = FALSE)
public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, $http_response_debug_cacheability_headers = FALSE)
public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, protected TimeInterface $time, $http_response_debug_cacheability_headers = FALSE)
Before: public function __construct($collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value_expire') After: public function __construct($collection, SerializationInterface $serializer, Connection $connection, protected TimeInterface $time, $table = 'key_value_expire')
public function __construct($collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value_expire')
public function __construct($collection, SerializationInterface $serializer, Connection $connection, protected TimeInterface $time, $table = 'key_value_expire')
Before: public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, $handler = NULL)
public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, $handler = NULL)
After: public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, protected TimeInterface $time, $handler = NULL)
public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, protected TimeInterface $time, $handler = NULL)
Before: public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, Connection $database_replica = NULL) After: public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, protected TimeInterface $time, Connection $database_replica = NULL)
public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, Connection $database_replica = NULL)
public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, protected TimeInterface $time, Connection $database_replica = NULL)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://www.drupal.org/node/3387233
Introduced in branch/version: 10.3.x / 10.3.0
The following classes now require the datetime.time service (
\Drupal\Component\Datetime\TimeInterface $time
) as a constructor parameter.These changes are needed to replace calls to the deprecated
REQUEST_TIME
global constant. (https://www.drupal.org/node/2785211)For all of the above constructors the
protected TimeInterface $time
parameter is added as the last of the constructor parameters.Exception to the parameter order, due to optional parameters, are:
Before:
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, $max_rows = NULL)
After:
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin, protected TimeInterface $time, $max_rows = NULL)
Before:
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, Settings $settings = NULL)
After:
public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, protected TimeInterface $time, Settings $settings = NULL)
Before:
public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, $http_response_debug_cacheability_headers = FALSE)
After:
public function __construct(LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, RequestPolicyInterface $request_policy, ResponsePolicyInterface $response_policy, CacheContextsManager $cache_contexts_manager, protected TimeInterface $time, $http_response_debug_cacheability_headers = FALSE)
Before:
public function __construct($collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value_expire')
After:
public function __construct($collection, SerializationInterface $serializer, Connection $connection, protected TimeInterface $time, $table = 'key_value_expire')
Before:
public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, $handler = NULL)
After:
public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, protected TimeInterface $time, $handler = NULL)
Before:
public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, Connection $database_replica = NULL)
After:
public function __construct(Connection $database, AccountInterface $current_user, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, protected TimeInterface $time, Connection $database_replica = NULL)
The text was updated successfully, but these errors were encountered: