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

Autoload: Support wildcards in namespace and excludes #13

Closed
martenb opened this issue Apr 9, 2019 · 3 comments
Closed

Autoload: Support wildcards in namespace and excludes #13

martenb opened this issue Apr 9, 2019 · 3 comments

Comments

@martenb
Copy link

martenb commented Apr 9, 2019

It will be nice to do something like this:

autoload:
	resources:
		App\Controllers\*Controller:
			paths: [%appDir%/Controllers]
                        excludes: [App\Controllers\Legacy*Controller]
@martenb martenb changed the title Autoload: Support wildcards in namespace and exclude Autoload: Support wildcards in namespace and excludes Apr 9, 2019
@f3l1x
Copy link
Member

f3l1x commented Apr 9, 2019

Hi @martenb. I would love it, but I think this will be supported directly in nette/di v3.

Take a look: https://github.com/nette/di/blob/master/src/DI/Extensions/SearchExtension.php

@mabar
Copy link
Contributor

mabar commented Apr 9, 2019

Yup, we could drop autoload extension with nette 3.

@martenb
Copy link
Author

martenb commented Apr 9, 2019

Ok, you're right, i forgot about this feature in nette 3..

@mabar mabar closed this as completed Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants