Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fixed YAML files missing quotes when a string starts with @ #16353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_fragmenttest_bundle:
resource: @TestBundle/Resources/config/routing.yml
resource: '@TestBundle/Resources/config/routing.yml'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_sessiontest_bundle:
resource: @TestBundle/Resources/config/routing.yml
resource: '@TestBundle/Resources/config/routing.yml'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_sessiontest_bundle:
resource: @TestBundle/Resources/config/routing.yml
resource: '@TestBundle/Resources/config/routing.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
class: Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\CsrfFormLoginBundle\Form\UserLoginFormType
scope: request
arguments:
- @request
- '@request'
tags:
- { name: form.type, alias: user_login }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_csrf_form_login_bundle:
resource: @CsrfFormLoginBundle/Resources/config/routing.yml
resource: '@CsrfFormLoginBundle/Resources/config/routing.yml'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_form_login_bundle:
resource: @FormLoginBundle/Resources/config/routing.yml
resource: '@FormLoginBundle/Resources/config/routing.yml'

_form_login_localized:
resource: @FormLoginBundle/Resources/config/localized_routing.yml
resource: '@FormLoginBundle/Resources/config/localized_routing.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ private function addService($id, $definition)
private function addServiceAlias($alias, $id)
{
if ($id->isPublic()) {
return sprintf(" %s: @%s\n", $alias, $id);
} else {
return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
return sprintf(" %s: '@%s'\n", $alias, $id);
}

return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
- 0
- 1000.3
bar: foo
escape: @@escapeme
foo_bar: @foo_bar
escape: '@@escapeme'
foo_bar: '@foo_bar'
MixedCase:
MixedCaseKey: value
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
scope.prototype: { class: FooClass, scope: prototype }
constructor: { class: FooClass, factory_method: getInstance }
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 }
configurator2: { class: FooClass, configurator: [@baz, configure] }
configurator3: { class: FooClass, configurator: [BazClass, configureStatic] }
Expand All @@ -18,8 +18,8 @@ services:
method_call2:
class: FooClass
calls:
- [ setBar, [ foo, @foo, [true, false] ] ]
alias_for_foo: @foo
- [ setBar, [ foo, '@foo', [true, false] ] ]
alias_for_foo: '@foo'
another_alias_for_foo:
alias: foo
public: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ services:
calls:
- [setRequest, ['@?request']]

alias_for_foo: @foo
alias_for_alias: @foo
alias_for_foo: '@foo'
alias_for_alias: '@foo'