yii2-dumper/controllers/DumpController.php

17 lines
354 B
PHP
Raw Normal View History

<?php
namespace app\controllers;
2020-09-16 21:32:33 +07:00
use Yii;
use app\Dumper;
class DumpController extends \yii\console\Controller
{
public function actionIndex($link, $depth = 0, $buffer = 0, $force = false, $searchExternal = false, $path = '')
{
2020-09-16 21:32:33 +07:00
(new Dumper)->download($link, $depth, $buffer, $force, $searchExternal, $path);
return 0;
}
}