-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DependencyInjection] fix dump xml with array/object/enum default value
- Loading branch information
1 parent
6736a10
commit addc22f
Showing
12 changed files
with
219 additions
and
2 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
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,12 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures; | ||
|
||
class FooClassWithDefaultArrayAttribute | ||
{ | ||
public function __construct( | ||
array $array = ['a', 'b', 'c'], | ||
bool $firstOptional = false, | ||
bool $secondOptional = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures; | ||
|
||
class FooClassWithDefaultEnumAttribute | ||
{ | ||
public function __construct( | ||
FooUnitEnum $enum = FooUnitEnum::FOO, | ||
bool $firstOptional = false, | ||
bool $secondOptional = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures; | ||
|
||
class FooClassWithDefaultObjectAttribute | ||
{ | ||
public function __construct( | ||
object $object = new \stdClass(), | ||
bool $firstOptional = false, | ||
bool $secondOptional = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
<services> | ||
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/> | ||
<service id="foo" class="Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultArrayAttribute" public="true" autowire="true"> | ||
<argument key="secondOptional">true</argument> | ||
</service> | ||
<service id="Psr\Container\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
</services> | ||
</container> |
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
<services> | ||
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/> | ||
<service id="foo" class="Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultEnumAttribute" public="true" autowire="true"> | ||
<argument key="secondOptional">true</argument> | ||
</service> | ||
<service id="Psr\Container\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
</services> | ||
</container> |
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
<services> | ||
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/> | ||
<service id="foo" class="Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultObjectAttribute" public="true" autowire="true"> | ||
<argument key="secondOptional">true</argument> | ||
</service> | ||
<service id="Psr\Container\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container"> | ||
<deprecated package="symfony/dependency-injection" version="5.1">The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated> | ||
</service> | ||
</services> | ||
</container> |
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 @@ | ||
|
||
services: | ||
service_container: | ||
class: Symfony\Component\DependencyInjection\ContainerInterface | ||
public: true | ||
synthetic: true | ||
foo: | ||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultArrayAttribute | ||
public: true | ||
autowire: true | ||
arguments: { secondOptional: true } | ||
Psr\Container\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. | ||
Symfony\Component\DependencyInjection\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. |
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 @@ | ||
|
||
services: | ||
service_container: | ||
class: Symfony\Component\DependencyInjection\ContainerInterface | ||
public: true | ||
synthetic: true | ||
foo: | ||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultEnumAttribute | ||
public: true | ||
autowire: true | ||
arguments: { secondOptional: true } | ||
Psr\Container\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. | ||
Symfony\Component\DependencyInjection\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. |
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 @@ | ||
|
||
services: | ||
service_container: | ||
class: Symfony\Component\DependencyInjection\ContainerInterface | ||
public: true | ||
synthetic: true | ||
foo: | ||
class: Symfony\Component\DependencyInjection\Tests\Fixtures\FooClassWithDefaultObjectAttribute | ||
public: true | ||
autowire: true | ||
arguments: { secondOptional: true } | ||
Psr\Container\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. | ||
Symfony\Component\DependencyInjection\ContainerInterface: | ||
alias: service_container | ||
deprecated: | ||
package: symfony/dependency-injection | ||
version: 5.1 | ||
message: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. |