-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from phalcon/4.0.x
2.0.0
- Loading branch information
Showing
133 changed files
with
4,422 additions
and
1,812 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
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
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,19 +1,28 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* Enabled providers. Order does matter | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
use Niden\Providers\CacheDataProvider; | ||
use Niden\Providers\ConfigProvider; | ||
use Niden\Providers\DatabaseProvider; | ||
use Niden\Providers\ErrorHandlerProvider; | ||
use Niden\Providers\LoggerProvider; | ||
use Niden\Providers\ModelsMetadataProvider; | ||
use Niden\Providers\RequestProvider; | ||
use Niden\Providers\ResponseProvider; | ||
use Niden\Providers\RouterProvider; | ||
use Phalcon\Api\Providers\CacheDataProvider; | ||
use Phalcon\Api\Providers\ConfigProvider; | ||
use Phalcon\Api\Providers\DatabaseProvider; | ||
use Phalcon\Api\Providers\ErrorHandlerProvider; | ||
use Phalcon\Api\Providers\LoggerProvider; | ||
use Phalcon\Api\Providers\ModelsMetadataProvider; | ||
use Phalcon\Api\Providers\RequestProvider; | ||
use Phalcon\Api\Providers\ResponseProvider; | ||
use Phalcon\Api\Providers\RouterProvider; | ||
|
||
/** | ||
* Enabled providers. Order does matter | ||
*/ | ||
return [ | ||
ConfigProvider::class, | ||
LoggerProvider::class, | ||
|
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,33 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
use function implode; | ||
use Niden\Http\Response; | ||
use Niden\Mvc\Model\AbstractModel; | ||
use Niden\Traits\FractalTrait; | ||
use Niden\Traits\QueryTrait; | ||
use Niden\Traits\ResponseTrait; | ||
use Phalcon\Cache\Backend\Libmemcached as CacheMemcached; | ||
namespace Phalcon\Api\Api\Controllers; | ||
|
||
use Phalcon\Api\Http\Response; | ||
use Phalcon\Api\Traits\FractalTrait; | ||
use Phalcon\Api\Traits\QueryTrait; | ||
use Phalcon\Api\Traits\ResponseTrait; | ||
use Phalcon\Cache; | ||
use Phalcon\Config; | ||
use Phalcon\Filter; | ||
use Phalcon\Mvc\Controller; | ||
use Phalcon\Mvc\Model\MetaData\Libmemcached as ModelsMetadataCache; | ||
use Phalcon\Mvc\Micro; | ||
use Phalcon\Mvc\Model\MetaData\Libmemcached as ModelsMetadataCache; | ||
use function explode; | ||
use function implode; | ||
use function in_array; | ||
use function strtolower; | ||
use function substr; | ||
|
||
/** | ||
* Class BaseController | ||
* | ||
* @package Niden\Api\Controllers | ||
* | ||
* @property Micro $application | ||
* @property CacheMemcached $cache | ||
* @property Cache $cache | ||
* @property Config $config | ||
* @property ModelsMetadataCache $modelsMetadata | ||
* @property Response $response | ||
|
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,25 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\Companies; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\Companies; | ||
|
||
use Niden\Constants\Relationships; | ||
use function Niden\Core\appUrl; | ||
use Niden\Exception\ModelException; | ||
use Niden\Http\Response; | ||
use Niden\Models\Companies; | ||
use Niden\Traits\FractalTrait; | ||
use Niden\Transformers\BaseTransformer; | ||
use Niden\Validation\CompaniesValidator; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Exception\ModelException; | ||
use Phalcon\Api\Http\Response; | ||
use Phalcon\Api\Models\Companies; | ||
use Phalcon\Api\Traits\FractalTrait; | ||
use Phalcon\Api\Transformers\BaseTransformer; | ||
use Phalcon\Api\Validation\CompaniesValidator; | ||
use Phalcon\Filter; | ||
use Phalcon\Mvc\Controller; | ||
use function Phalcon\Api\Core\appUrl; | ||
|
||
/** | ||
* Class AddController | ||
* | ||
* @package Niden\Api\Controllers\Companies | ||
* | ||
* @property Response $response | ||
*/ | ||
class AddController extends Controller | ||
|
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,18 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\Companies; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\Companies; | ||
|
||
use Niden\Api\Controllers\BaseController; | ||
use Niden\Constants\Relationships; | ||
use Niden\Models\Companies; | ||
use Niden\Transformers\CompaniesTransformer; | ||
use Phalcon\Api\Api\Controllers\BaseController; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Models\Companies; | ||
use Phalcon\Api\Transformers\CompaniesTransformer; | ||
|
||
/** | ||
* Class GetController | ||
* | ||
* @package Niden\Api\Controllers\Companies | ||
*/ | ||
class GetController extends BaseController | ||
{ | ||
|
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,18 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\IndividualTypes; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\IndividualTypes; | ||
|
||
use Niden\Api\Controllers\BaseController; | ||
use Niden\Constants\Relationships; | ||
use Niden\Models\IndividualTypes; | ||
use Niden\Transformers\IndividualTypesTransformer; | ||
use Phalcon\Api\Api\Controllers\BaseController; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Models\IndividualTypes; | ||
use Phalcon\Api\Transformers\IndividualTypesTransformer; | ||
|
||
/** | ||
* Class GetController | ||
* | ||
* @package Niden\Api\Controllers\IndividualTypes | ||
*/ | ||
class GetController extends BaseController | ||
{ | ||
|
@@ -37,4 +43,3 @@ class GetController extends BaseController | |
/** @var string */ | ||
protected $transformer = IndividualTypesTransformer::class; | ||
} | ||
|
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,18 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\Individuals; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\Individuals; | ||
|
||
use Niden\Api\Controllers\BaseController; | ||
use Niden\Constants\Relationships; | ||
use Niden\Models\Individuals; | ||
use Niden\Transformers\IndividualsTransformer; | ||
use Phalcon\Api\Api\Controllers\BaseController; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Models\Individuals; | ||
use Phalcon\Api\Transformers\IndividualsTransformer; | ||
|
||
/** | ||
* Class GetController | ||
* | ||
* @package Niden\Api\Controllers\Individuals | ||
*/ | ||
class GetController extends BaseController | ||
{ | ||
|
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,26 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers; | ||
|
||
use Niden\Exception\ModelException; | ||
use Niden\Http\Request; | ||
use Niden\Http\Response; | ||
use Niden\Models\Users; | ||
use Niden\Traits\QueryTrait; | ||
use Niden\Traits\TokenTrait; | ||
use Phalcon\Cache\Backend\Libmemcached; | ||
use Phalcon\Api\Exception\ModelException; | ||
use Phalcon\Api\Http\Request; | ||
use Phalcon\Api\Http\Response; | ||
use Phalcon\Api\Models\Users; | ||
use Phalcon\Api\Traits\QueryTrait; | ||
use Phalcon\Api\Traits\TokenTrait; | ||
use Phalcon\Cache; | ||
use Phalcon\Config; | ||
use Phalcon\Filter; | ||
use Phalcon\Mvc\Controller; | ||
|
||
/** | ||
* Class LoginController | ||
* | ||
* @package Niden\Api\Controllers | ||
* | ||
* @property Libmemcached $cache | ||
* @property Cache $cache | ||
* @property Config $config | ||
* @property Request $request | ||
* @property Response $response | ||
|
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,18 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\ProductTypes; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\ProductTypes; | ||
|
||
use Niden\Api\Controllers\BaseController; | ||
use Niden\Constants\Relationships; | ||
use Niden\Models\ProductTypes; | ||
use Niden\Transformers\ProductTypesTransformer; | ||
use Phalcon\Api\Api\Controllers\BaseController; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Models\ProductTypes; | ||
use Phalcon\Api\Transformers\ProductTypesTransformer; | ||
|
||
/** | ||
* Class GetController | ||
* | ||
* @package Niden\Api\Controllers\ProductTypes | ||
*/ | ||
class GetController extends BaseController | ||
{ | ||
|
@@ -37,4 +43,3 @@ class GetController extends BaseController | |
/** @var string */ | ||
protected $transformer = ProductTypesTransformer::class; | ||
} | ||
|
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,18 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Niden\Api\Controllers\Products; | ||
/** | ||
* This file is part of the Phalcon API. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Api\Api\Controllers\Products; | ||
|
||
use Niden\Api\Controllers\BaseController; | ||
use Niden\Constants\Relationships; | ||
use Niden\Models\Products; | ||
use Niden\Transformers\ProductsTransformer; | ||
use Phalcon\Api\Api\Controllers\BaseController; | ||
use Phalcon\Api\Constants\Relationships; | ||
use Phalcon\Api\Models\Products; | ||
use Phalcon\Api\Transformers\ProductsTransformer; | ||
|
||
/** | ||
* Class GetController | ||
* | ||
* @package Niden\Api\Controllers\Products | ||
*/ | ||
class GetController extends BaseController | ||
{ | ||
|
Oops, something went wrong.