mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
chore: Refactor Bootstrap module initialization and Config class wiring.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
10
cli.php
10
cli.php
@@ -22,7 +22,15 @@
|
||||
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use SP\Modules\Cli\Init as InitCli;
|
||||
|
||||
const APP_ROOT = __DIR__;
|
||||
const APP_MODULE = 'cli';
|
||||
|
||||
require APP_ROOT . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'Base.php';
|
||||
$dic = require APP_ROOT.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'Base.php';
|
||||
|
||||
logger('------------');
|
||||
logger('Boostrap:cli');
|
||||
|
||||
$cli = $dic->get(InitCli::class);
|
||||
$cli->initialize('');
|
||||
Reference in New Issue
Block a user