Обучение #39

Merged
lopar merged 15 commits from maksym into dev 2023-01-23 11:45:10 +00:00
Showing only changes of commit 95604fc4b1 - Show all commits

View File

@ -1,9 +1,5 @@
<?php
use DarksLight2\Training\Steps\FirstStep;
use DarksLight2\Training\TrainingException;
use DarksLight2\Training\TrainingManager;
const GAME = true; // Для совместимости с этой "защитой".
const GAME_VERSION = 'alpha-7.4';
// Новая автозагрузка.
@ -50,16 +46,3 @@ spl_autoload_register(function (string $classname) {
require_once $file;
});
/**
* Нужно перенести в другое местечко, но пока так
*/
try {
$training_manager = TrainingManager::getInstance(User::start()->info['id']);
$training_manager->createDatabaseRecord();
$training_manager->register([
new FirstStep(),
]);
} catch (TrainingException $e) {
}