fixed YAML files missing quotes when a string starts with @
This commit is contained in:
parent
2d588710ff
commit
e36fea8a63
@ -1,2 +1,2 @@
|
|||||||
_fragmenttest_bundle:
|
_fragmenttest_bundle:
|
||||||
resource: @TestBundle/Resources/config/routing.yml
|
resource: '@TestBundle/Resources/config/routing.yml'
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
_sessiontest_bundle:
|
_sessiontest_bundle:
|
||||||
resource: @TestBundle/Resources/config/routing.yml
|
resource: '@TestBundle/Resources/config/routing.yml'
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
_sessiontest_bundle:
|
_sessiontest_bundle:
|
||||||
resource: @TestBundle/Resources/config/routing.yml
|
resource: '@TestBundle/Resources/config/routing.yml'
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
class: Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\CsrfFormLoginBundle\Form\UserLoginFormType
|
class: Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\CsrfFormLoginBundle\Form\UserLoginFormType
|
||||||
scope: request
|
scope: request
|
||||||
arguments:
|
arguments:
|
||||||
- @request
|
- '@request'
|
||||||
tags:
|
tags:
|
||||||
- { name: form.type, alias: user_login }
|
- { name: form.type, alias: user_login }
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
_csrf_form_login_bundle:
|
_csrf_form_login_bundle:
|
||||||
resource: @CsrfFormLoginBundle/Resources/config/routing.yml
|
resource: '@CsrfFormLoginBundle/Resources/config/routing.yml'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
_form_login_bundle:
|
_form_login_bundle:
|
||||||
resource: @FormLoginBundle/Resources/config/routing.yml
|
resource: '@FormLoginBundle/Resources/config/routing.yml'
|
||||||
|
|
||||||
_form_login_localized:
|
_form_login_localized:
|
||||||
resource: @FormLoginBundle/Resources/config/localized_routing.yml
|
resource: '@FormLoginBundle/Resources/config/localized_routing.yml'
|
||||||
|
@ -157,10 +157,10 @@ class YamlDumper extends Dumper
|
|||||||
private function addServiceAlias($alias, $id)
|
private function addServiceAlias($alias, $id)
|
||||||
{
|
{
|
||||||
if ($id->isPublic()) {
|
if ($id->isPublic()) {
|
||||||
return sprintf(" %s: @%s\n", $alias, $id);
|
return sprintf(" %s: '@%s'\n", $alias, $id);
|
||||||
} else {
|
|
||||||
return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6,7 +6,7 @@ parameters:
|
|||||||
- 0
|
- 0
|
||||||
- 1000.3
|
- 1000.3
|
||||||
bar: foo
|
bar: foo
|
||||||
escape: @@escapeme
|
escape: '@@escapeme'
|
||||||
foo_bar: @foo_bar
|
foo_bar: '@foo_bar'
|
||||||
MixedCase:
|
MixedCase:
|
||||||
MixedCaseKey: value
|
MixedCaseKey: value
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
scope.prototype: { class: FooClass, scope: prototype }
|
scope.prototype: { class: FooClass, scope: prototype }
|
||||||
constructor: { class: FooClass, factory_method: getInstance }
|
constructor: { class: FooClass, factory_method: getInstance }
|
||||||
file: { class: FooClass, file: %path%/foo.php }
|
file: { class: FooClass, file: %path%/foo.php }
|
||||||
arguments: { class: FooClass, arguments: [foo, @foo, [true, false]] }
|
arguments: { class: FooClass, arguments: [foo, '@foo', [true, false]] }
|
||||||
configurator1: { class: FooClass, configurator: sc_configure }
|
configurator1: { class: FooClass, configurator: sc_configure }
|
||||||
configurator2: { class: FooClass, configurator: [@baz, configure] }
|
configurator2: { class: FooClass, configurator: [@baz, configure] }
|
||||||
configurator3: { class: FooClass, configurator: [BazClass, configureStatic] }
|
configurator3: { class: FooClass, configurator: [BazClass, configureStatic] }
|
||||||
@ -18,8 +18,8 @@ services:
|
|||||||
method_call2:
|
method_call2:
|
||||||
class: FooClass
|
class: FooClass
|
||||||
calls:
|
calls:
|
||||||
- [ setBar, [ foo, @foo, [true, false] ] ]
|
- [ setBar, [ foo, '@foo', [true, false] ] ]
|
||||||
alias_for_foo: @foo
|
alias_for_foo: '@foo'
|
||||||
another_alias_for_foo:
|
another_alias_for_foo:
|
||||||
alias: foo
|
alias: foo
|
||||||
public: false
|
public: false
|
||||||
|
@ -69,5 +69,5 @@ services:
|
|||||||
calls:
|
calls:
|
||||||
- [setRequest, ['@?request']]
|
- [setRequest, ['@?request']]
|
||||||
|
|
||||||
alias_for_foo: @foo
|
alias_for_foo: '@foo'
|
||||||
alias_for_alias: @foo
|
alias_for_alias: '@foo'
|
||||||
|
Reference in New Issue
Block a user