Repository navigation
Expand file tree
/
Copy pathPhalcon2.php
More file actions
65 lines (63 loc) · 1.56 KB
/
Copy pathPhalcon2.php
File metadata and controls
65 lines (63 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
namespace Codeception\Module;
use Phalcon\Di;
use Phalcon\Mvc\Model as PhalconModel;
use Codeception\TestCase;
/**
* This module provides integration with [Phalcon framework](http://www.phalconphp.com/) (2.x).
* Please try it and leave your feedback.
* The module is based on the Phalcon1 module.
*
* ## Demo Project
*
* <https://github.com/phalcon/forum>
*
* ## Status
*
* * Maintainer: **Serghei Iakovlev**
* * Stability: **dev**
* * Contact: sadhooklay@gmail.com
*
* ## Example
*
* modules:
* enabled:
* - Phalcon2:
* bootstrap: 'app/config/bootstrap.php'
* cleanup: true
* savepoints: true
*
* ## Config
*
* The following configurations are required for this module:
* * boostrap: the path of the application bootstrap file</li>
* * cleanup: cleanup database (using transactions)</li>
* * savepoints: use savepoints to emulate nested transactions</li>
*
* The application bootstrap file must return Application object but not call its handle() method.
*
* Sample bootstrap (`app/config/bootstrap.php`):
*
* ``` php
* <?php
* $config = include __DIR__ . "/config.php";
* include __DIR__ . "/loader.php";
* $di = new \Phalcon\DI\FactoryDefault();
* include __DIR__ . "/services.php";
* return new \Phalcon\Mvc\Application($di);
* ?>
* ```
*
* ## API
*
* * di - `Phalcon\Di\Injectable` instance
* * client - `BrowserKit` client
*
* ## Parts
*
* * ORM - include only haveRecord/grabRecord/seeRecord/dontSeeRecord actions
*
*/
class Phalcon2 extends Phalcon1
{
}