Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
2 files
+ 0
27
Compare changes
  • Side-by-side
  • Inline
Files
2
  • a5f4685c
    Issue #3320315 by Wim Leers, Anchal_gupta, alexpott, longwave: Allow uppercase... · a5f4685c
    Alex Pott authored
    Issue #3320315 by Wim Leers, Anchal_gupta, alexpott, longwave: Allow uppercase service IDs/names — necessary for autowiring support
@@ -41,9 +41,6 @@ public function __construct(ParameterBagInterface $parameterBag = NULL) {
* services in a frozen builder.
*/
public function set($id, $service) {
if (strtolower($id) !== $id) {
throw new \InvalidArgumentException("Service ID names must be lowercase: $id");
}
SymfonyContainer::set($id, $service);
}
@@ -51,9 +48,6 @@ public function set($id, $service) {
* {@inheritdoc}
*/
public function register($id, $class = NULL): Definition {
if (strtolower($id) !== $id) {
throw new \InvalidArgumentException("Service ID names must be lowercase: $id");
}
$definition = new Definition($class);
// As of Symfony 5.2 all services are private by default, but in Drupal
// services are still public by default.
Loading