#!/usr/bin/env php [ 'fixture' => [ 'class' => 'yii\faker\FixtureController', 'fixtureDataPath' => dirname(__DIR__) . 'fixtures', 'templatePath' => dirname(__DIR__) . 'templates' ], ], 'components' => [ 'db' => [ 'dsn' => 'mysql:host=localhost;dbname=yii2_basic_unit', ], ], ] ); $application = new yii\console\Application($config); $exitCode = $application->run(); exit($exitCode);