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

Generated multi accessor does not support only one service #276

Closed
h4kuna opened this issue Jan 19, 2022 · 0 comments
Closed

Generated multi accessor does not support only one service #276

h4kuna opened this issue Jan 19, 2022 · 0 comments

Comments

@h4kuna
Copy link
Contributor

h4kuna commented Jan 19, 2022

Version: 3.0.12

Hello,

Bug Description

I want create generated multi accessor, but in first moment i add only one service and try to run. I got exception with message
Service '011': Method MMEE\User\MultiMethods::get() must have no parameters. I check both interface and neon, but nothing found. After I add second service, that it works.

Steps To Reproduce

interface MultiAccessor
{
	function get($name): Listener
}
services:
	- App\Model\CacheCleanerAuthSubscriber

	- MultiAccessor(
		sub1: @App\Mode\CacheCleanerAuthSubscriber
	)

Expected Behavior

Works with one service or better message in exception.

@dg dg closed this as completed in 1c2351b Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant