Skip to content

Conversation

@vlastavesely
Copy link
Contributor

FR #8

A $loader->disallow($path) function would be nice to have, and less awkward than creating a file to instruct the loader which paths to disallow.

I also think it is useful for it is more intuitive than using netterobots.txt. A few months ago I needed to do the same thing and because my only documentation was API reference at the time, I did not know about possibility to use netterobots.txt and I had to move that directory to an other place.

* Excludes path or paths from list.
* @param string|string[] absolute path
* @return static
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...$path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it could be. But if so, it should be done also in RobotLoader::addDirectory(). The functions are almost the same.

@dg
Copy link
Member

dg commented Jan 23, 2017

Thanks!

@dg dg merged commit eb4443d into nette:master Jan 23, 2017
dg pushed a commit that referenced this pull request Jan 23, 2017
@dg dg mentioned this pull request Jan 23, 2017
dg pushed a commit that referenced this pull request Jan 23, 2017
dg pushed a commit that referenced this pull request Jan 23, 2017
dg pushed a commit that referenced this pull request Jan 23, 2017
dg pushed a commit that referenced this pull request Jan 26, 2017
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

Successfully merging this pull request may close these issues.

3 participants