Skip to content
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

Improve UX adding short syntax passing string reference to methods' calls #314

Open
xepozz opened this issue Nov 7, 2022 · 0 comments
Open

Comments

@xepozz
Copy link
Contributor

xepozz commented Nov 7, 2022

I think passing string reference could be more convenient for users:
Determine the behaviour of passing strings:

  1. Hidden/short reference
'addAdapters()' => 'tag@adapters'
  1. Direct/full reference
'addAdapters()' => [Reference::to('tag@adapters')]

There are short and full form. They are fully equals by meaning.

If you need to pass 'tag@adapters' as a string parameter you need to use the following syntax:

'addAdapters()' => ['tag@adapters']

That how it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant