mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-21 07:46:50 +01:00
chore: Refactoring of Bootstrap class into an abstract class.
This allows to implement bootstrap classes for each module and simplifies the bootstrap code. Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
4
api.php
4
api.php
@@ -22,11 +22,11 @@
|
||||
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use SP\Bootstrap;
|
||||
use SP\Core\Bootstrap\BootstrapApi;
|
||||
|
||||
const APP_ROOT = __DIR__;
|
||||
const APP_MODULE = 'api';
|
||||
|
||||
$dic = require APP_ROOT.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'Base.php';
|
||||
|
||||
Bootstrap::runApi($dic);
|
||||
BootstrapApi::run($dic);
|
||||
|
||||
Reference in New Issue
Block a user