Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 5.3: Fix Choice constraint with associative choices array [Form] UrlType should not add protocol to emails Silence isatty warnings during tty detection [Serializer] Fix AbstractObjectNormalizer not considering pseudo type false [Notifier] Fix encoding of messages with FreeMobileTransport [Cache] workaround PHP crash [Console] Fix PHP 8.1 deprecation in ChoiceQuestion [Notifier] smsapi-notifier - correct encoding Replaced full CoC text with link to documentation Making the parser stateless [Console] fix restoring stty mode on CTRL+C fix merge (bis) fix merge [Process] Avoid calling fclose on an already closed resource [GHA] test tty group [DI] Fix tests on PHP 7.1
- Loading branch information
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
services: | ||
service_container: | ||
class: Symfony\Component\DependencyInjection\ContainerInterface | ||
public: true | ||
synthetic: true | ||
App\BarService: | ||
class: App\BarService | ||
public: true | ||
arguments: [!service { class: FooClass }] | ||
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo: | ||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo | ||
public: true | ||
tags: | ||
- t: { a: b } | ||
autowire: true | ||
autoconfigure: true | ||
arguments: ['@bar', !tagged_iterator foo, !service { class: Baz }] | ||
bar: | ||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo | ||
public: true | ||
tags: | ||
- t: { a: b } | ||
autowire: true | ||
arguments: [null, !tagged_iterator foo, !service { class: Baz }] | ||
calls: | ||
- [setFoo, ['@bar']] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo; | ||
|
||
return function (ContainerConfigurator $c) { | ||
$c->import('basic.php'); | ||
|
||
$s = $c->services()->defaults() | ||
->public() | ||
->private() | ||
->autoconfigure() | ||
->autowire() | ||
->tag('t', ['a' => 'b']) | ||
->bind(Foo::class, service('bar')) | ||
->bind('iterable $foo', tagged_iterator('foo')) | ||
->bind('object $baz', inline_service('Baz')) | ||
->public(); | ||
|
||
$s->set(Foo::class)->args([service('bar')])->public(); | ||
$s->set('bar', Foo::class)->call('setFoo')->autoconfigure(false); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters