Skip to content

Commit

Permalink
update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Steeven Andrian committed Jun 2, 2020
1 parent 6a4c2bc commit 8061191
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 334 deletions.
48 changes: 24 additions & 24 deletions app/Config/Models.php
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';
*/
220 changes: 110 additions & 110 deletions app/Config/Parser.php
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,
]);
56 changes: 28 additions & 28 deletions app/Config/Services.php
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;
|
*/
Loading

0 comments on commit 8061191

Please sign in to comment.