I have added li3_docs (https://github.com/UnionOfRAD/li3_docs) to my application but I don't want this library to load in production environment. What is the best way to prevent the docs from being available in production environment? Initially I thought of adding this line to my config/bootstrap/libraries.php:
if(!Environment::is('production')) {
Libraries::add('li3_docs');
}
This doesn't work because Environment class hasn't been loaded yet and I feel like it isn't wise to load this before the libraries loader. So what is the best way to do this?