PHP Classes
elePHPant
Icontem

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Thien Tran  >  Phalcon Cashier  >  tests/bootstrap.php  >  Download  
File: tests/bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Phalcon Cashier
Access subscription services provided by Stripe
Author: By
Last change:
Date: 3 years ago
Size: 655 bytes
 

 

Contents

Class file image Download
<?php
use Phalcon\Mvc\Application;

error_reporting(E_ALL);
ini_set('memory_limit', '-1');


if (!
defined('ROOT_DIR')) {
   
define('ROOT_DIR', dirname(__DIR__) .'/');
}
if (!
defined('APPLICATION_ENV')) {
   
define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'local'));
}

require_once
ROOT_DIR . 'vendor/autoload.php';

$loader = new \Phalcon\Loader();
$loader->registerNamespaces(
    [
       
'Phalcon\Cashier' => ROOT_DIR . 'src',
       
'App\Models' => ROOT_DIR . 'tests/models'
   
]
);

$loader->register();

include
ROOT_DIR . 'tests/service.phalcon.php';

return new
Application($di);