Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support @> as a shorthand for !service_closure in YamlFileLoader #59255

Copy link
Copy link
Closed
@chx

Description

@chx
Issue body actions

Description

!service_closure '@foo' is quite long winded.

@?foo is already supported so why not @> as well? It resembles fn () => so it's easy to remember.

Example

Implementing this as simple as

            if ('service_closure' === $value->getTag() || (\is_string($argument) && str_starts_with($argument, '@>'))) {
                if (is_string($argument)) {
                    $argument = str_replace('@>', '@', $argument);
                }
                $argument = $this->resolveServices($argument, $file, $isParameter);

                return new ServiceClosureArgument($argument);
            }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.