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

Using in Symfony Console commands #41

Open
thorewi opened this issue May 12, 2024 · 0 comments
Open

Using in Symfony Console commands #41

thorewi opened this issue May 12, 2024 · 0 comments

Comments

@thorewi
Copy link

thorewi commented May 12, 2024

Hi,

is there any reason why to limit usage only for Components:

if (! $this instanceof Nette\Application\UI\Component) {
	throw new MemberAccessException('Trait ' . __TRAIT__ . ' can be used only in descendants of ' . Nette\Application\UI\Component::class . '.');
}

?

I'm using it (successfully) also in Symfony Console Commands.

Thank you for your opinion.

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