Skip to content
New issue

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

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

Already on GitHub? # to your account

Using in Symfony Console commands #41

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

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.

@thorewi thorewi closed this as completed Jan 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant