-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steeven Andrian
committed
Jun 2, 2020
1 parent
6a4c2bc
commit 8061191
Showing
5 changed files
with
334 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Autoload models | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the modular Models folder. | ||
| The model classes must be inherited from O2System\Framework\Abstracts\AbstractModel. | ||
| The model that listed in this autoload is for lazy init only. | ||
| | ||
| Example: | ||
| | ||
| $models[ 'options' ] = 'O2System\Framework\Models\Options'; | ||
*/ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Autoload models | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the modular Models folder. | ||
| The model classes must be inherited from O2System\Framework\Abstracts\AbstractModel. | ||
| The model that listed in this autoload is for lazy init only. | ||
| | ||
| Example: | ||
| | ||
| $models[ 'options' ] = 'O2System\Framework\Models\Options'; | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,110 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Parser Configuration | ||
* | ||
* @var \O2System\Parser\DataStructures\Config | ||
*/ | ||
$parser = new \O2System\Parser\DataStructures\Config([ | ||
/** | ||
* Template Engine | ||
* | ||
* You can choose the parser driver according to your favorite template engine. The available options are: | ||
* | ||
* Noodle - Default parser engine by Steeven Andrian Salim | ||
* Mustache - Parser engine by Chris Wanstrath | ||
* Smarty - Parser engine by New Digital Group, Inc | ||
* Dwoo - Parser engine by David Sanchez | ||
* Twig - Parser engine by SensioLabs | ||
* | ||
* @var string | ||
*/ | ||
'template' => [ | ||
'Noodle' | ||
], | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* String Engine | ||
* | ||
* You can choose the parser driver according to your favorite template engine. The available options are: | ||
* | ||
* Shortcodes | ||
* BBCode | ||
* Markdown | ||
* | ||
* @var string | ||
*/ | ||
'template' => [ | ||
'Noodle' | ||
], | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Scripts | ||
* | ||
* Allow php scripts to be parsed | ||
* | ||
* @var bool | ||
*/ | ||
'allowPhpScripts' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Globals Variable | ||
* | ||
* Allow php global variable to be parsed | ||
* | ||
* When set to TRUE all php globals variables will automatically parse into string. | ||
* | ||
* @var bool | ||
*/ | ||
'allowPhpGlobals' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Functions | ||
* | ||
* Allow php functions to be parsed | ||
* | ||
* When set to TRUE all php functions will automatically parse into string. | ||
* Or you can listed all allowed php function into this configuration. | ||
* | ||
* @example | ||
* $parser->allowPhpFunctions = ['base_url', 'current_url'] | ||
* | ||
* @var bool|array | ||
*/ | ||
'allowPhpFunctions' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Constants | ||
* | ||
* Allow php constants to be parsed | ||
* | ||
* When set to TRUE all defined php constants will automatically parse into string. | ||
* Or you can listed all allowed defined php constants into this configuration. | ||
* | ||
* @example | ||
* $parser->allowPhpConstants = ['SYSTEM_NAME', 'SYSTEM_VERSION'] | ||
* | ||
* @var bool|array | ||
*/ | ||
'allowPhpConstants' => true, | ||
]); | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Parser Configuration | ||
* | ||
* @var \O2System\Parser\DataStructures\Config | ||
*/ | ||
$parser = new \O2System\Parser\DataStructures\Config([ | ||
/** | ||
* Template Engine | ||
* | ||
* You can choose the parser driver according to your favorite template engine. The available options are: | ||
* | ||
* Noodle - Default parser engine by Steeven Andrian Salim | ||
* Mustache - Parser engine by Chris Wanstrath | ||
* Smarty - Parser engine by New Digital Group, Inc | ||
* Dwoo - Parser engine by David Sanchez | ||
* Twig - Parser engine by SensioLabs | ||
* | ||
* @var array | ||
*/ | ||
'template' => [ | ||
'Noodle' | ||
], | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* String Engine | ||
* | ||
* You can choose the parser driver according to your favorite template engine. The available options are: | ||
* | ||
* Shortcodes | ||
* BBCode | ||
* Markdown | ||
* | ||
* @var array | ||
*/ | ||
'string' => [ | ||
'Noodle' | ||
], | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Scripts | ||
* | ||
* Allow php scripts to be parsed | ||
* | ||
* @var bool | ||
*/ | ||
'allowPhpScripts' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Globals Variable | ||
* | ||
* Allow php global variable to be parsed | ||
* | ||
* When set to TRUE all php globals variables will automatically parse into string. | ||
* | ||
* @var bool | ||
*/ | ||
'allowPhpGlobals' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Functions | ||
* | ||
* Allow php functions to be parsed | ||
* | ||
* When set to TRUE all php functions will automatically parse into string. | ||
* Or you can listed all allowed php function into this configuration. | ||
* | ||
* @example | ||
* $parser->allowPhpFunctions = ['base_url', 'current_url'] | ||
* | ||
* @var array|bool | ||
*/ | ||
'allowPhpFunctions' => true, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* PHP Constants | ||
* | ||
* Allow php constants to be parsed | ||
* | ||
* When set to TRUE all defined php constants will automatically parse into string. | ||
* Or you can listed all allowed defined php constants into this configuration. | ||
* | ||
* @example | ||
* $parser->allowPhpConstants = ['SYSTEM_NAME', 'SYSTEM_VERSION'] | ||
* | ||
* @var array|bool | ||
*/ | ||
'allowPhpConstants' => true, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Autoload Services | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the modular Libraries folder | ||
| or dependency classes located in the composer vendor folder. | ||
| The array key is the offset of the library class. | ||
| | ||
| Example lazy init libraries | ||
| $services[ 'foo' ] = 'App\Libraries\Foo'; | ||
| | ||
| Example init libraries | ||
| $services[ 'foo' ] = new App\Libraries\Foo( 'bar' ); | ||
| $services['user'] = \O2System\Framework\Libraries\AccessControl\User::class; | ||
| | ||
*/ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Autoload Services | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the modular Libraries folder | ||
| or dependency classes located in the composer vendor folder. | ||
| The array key is the offset of the library class. | ||
| | ||
| Example lazy init libraries | ||
| $services[ 'foo' ] = 'App\Libraries\Foo'; | ||
| | ||
| Example init libraries | ||
| $services[ 'foo' ] = new App\Libraries\Foo( 'bar' ); | ||
| $services['user'] = \O2System\Framework\Libraries\AccessControl\User::class; | ||
| | ||
*/ |
Oops, something went wrong.