LScli : load some classes by default

This commit is contained in:
Benjamin Renard 2020-04-29 19:33:32 +02:00
parent 164a8fab48
commit 448d977f14

View file

@ -25,6 +25,11 @@ require_once realpath(dirname(__FILE__)."/../")."/core.php";
if(LSsession :: startCliLSsession()) {
// Load some default classes
foreach(array('LSsearch', 'LSldapObject') as $class)
if (!LSsession :: loadLSClass($class))
LSlog :: fatal("Fail to load class $class.");
// Handle CLI arguments and run command (if provided)
LScli :: handle_args();