PHP Classes

File: tests/testapp/yii

Recommend this page to a friend!
  Classes of Insolita   Yii2 Fractal   tests/testapp/yii   Download  
File: tests/testapp/yii
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Fractal
Components to implement API based on JSON:API
Author: By
Last change:
Date: 13 days ago
Size: 456 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php
defined
('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
require
dirname(__DIR__, 2) . '/vendor/autoload.php';
require
dirname(__DIR__, 2) . '/vendor/yiisoft/yii2/Yii.php';

Yii::setAlias('@tests', dirname(__DIR__));
Yii::setAlias('@app', __DIR__);
$config = require(__DIR__ . '/config/console.php');
$app = new yii\console\Application($config);
$exitCode = $app->run();
exit(
$exitCode);