You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are in the end of 2024 and i'm still using the autoloader in my includes/ folder of my cms with this modifications above.
Can you add in next version something like that to exclude specific file names?
I want to delete this file and update the library from github with modifications..
yes, but i'm not prefer this version, because i'm using nette email library and other stuff, that depends on other nette libraries, so i need modifications on main version...
Ok, i find a way to fix my things in #31
Sorry for my english is not good at all...
Ok, open RobotLoader.php and find:
private array $excludeDirs = [];
after this line add:
private array $excludeFiles = [];
find:
after this add:
find:
exclude($this->ignoreDirs);
make it like this:
exclude($this->ignoreDirs)->exclude($this->excludeFiles);
After that you can use:
$loader->excludeFiles(['sql.php','en.php','es.php','bg.php','fr.php','ru.php','migrate.php']);
excludeDirs is working normal with this addon (i tested it).
Can you commit the changes ? :)
The text was updated successfully, but these errors were encountered: