提问人:rcn 提问时间:2/17/2023 最后编辑:rcn 更新时间:2/17/2023 访问量:339
如何在项目中替换 silex 并使其适应 php8
How to replace silex in a project and adapt it to php8
问:
我在我的项目php中有这个。
$app = new Silex\Application();
$app->register(new DerAlex\Silex\YamlConfigServiceProvider(realpath(__DIR__ . '/config/settings.yml')));
$app->register(new \Knp\Provider\MigrationServiceProvider(), array(
'migration.path' => __DIR__.'/../migration',
));
我需要更新代码以使用 php8。
所有软件包都被放弃/存档。
我可以用 spryker/silexphp 替换 silex/silex。
我不知道如何替换这个包来获得settings.yml配置。
- DerAlex\Silex\YamlConfigServiceProvider
有人知道我该怎么做吗?
答: 暂无答案
评论