我想将Slim Container设置为Symfony / console的应用程序实例,用于 这个包lavary / crunz基于 点击here!
这是我到目前为止所做的:
<?php
require 'vendor/autoload.php';
$setting= require __DIR__ .'/src/Config/settings.php';
use App\command\UserRisk;
use Symfony\Component\Console\Application;
$app=new Slim\App($setting);
require __DIR__ .'/src/Config/dependencies.php';
$command= new UserRisk();
$app =new Application();
$app ->add($command);
$app->run();