Commit eb8f115c authored by catch's avatar catch
Browse files

fix: #3555531 Since symfony/dependency-injection 7.4: Service id...

fix: #3555531 Since symfony/dependency-injection 7.4: Service id DrupalCoreExampleClass looks like a FQCN but no corresponding class or interface exists.

By: @longwave
By: @quietone
(cherry picked from commit 15ad9420)
parent 1fd4d2c4
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@
# Symfony 7.4.
%Since symfony/browser-kit 7.4: Method "Symfony\\Component\\BrowserKit\\AbstractBrowser::useHtml5Parser\(\)" is deprecated. Symfony 8 will unconditionally use the native HTML5 parser.%
%Since symfony/console 7.4: The "Symfony\\Component\\Console\\Application::add\(\)" method is deprecated and will be removed in Symfony 8.0, use "Symfony\\Component\\Console\\Application::addCommand\(\)" instead.%
%Since symfony/dependency-injection 7.4: Service id "Drupal\\Core\\ExampleClass" looks like a FQCN but no corresponding class or interface exists.%
%Since symfony/dom-crawler 7.4: Disabling HTML5 parsing is deprecated. Symfony 8 will unconditionally use the native HTML5 parser.%
%Since symfony/http-foundation 7.4: Request::get\(\) is deprecated, use properties -.*attributes, query or request directly instead.%
%Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of Drupal\\(Core|ckeditor5|file)\\[^ ]+ instead.%
+3 −3
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class: \Drupal\Core\ExampleClass
  example_private_service:
    class: \Drupal\Core\ExampleClass
    public: false
  Drupal\Core\ExampleClass: ~
  Drupal\Tests\Core\DependencyInjection\YamlFileLoaderTest: ~
  example_tagged_iterator:
    class: \Drupal\Core\ExampleClass
    arguments: [!tagged_iterator foo.bar]
@@ -72,8 +72,8 @@ class: \Drupal\Core\ExampleClass
    $builder->compile();
    $this->assertTrue($builder->has('example_service_1'));
    $this->assertFalse($builder->has('example_private_service'));
    $this->assertTrue($builder->has('Drupal\Core\ExampleClass'));
    $this->assertSame('Drupal\Core\ExampleClass', $builder->getDefinition('Drupal\Core\ExampleClass')->getClass());
    $this->assertTrue($builder->has('Drupal\Tests\Core\DependencyInjection\YamlFileLoaderTest'));
    $this->assertSame('Drupal\Tests\Core\DependencyInjection\YamlFileLoaderTest', $builder->getDefinition('Drupal\Tests\Core\DependencyInjection\YamlFileLoaderTest')->getClass());
    $this->assertInstanceOf(TaggedIteratorArgument::class, $builder->getDefinition('example_tagged_iterator')->getArgument(0));

    // Test service closures.