* [ADD] Added services for every repository

* [ADD] New Select component to deal with structured data from a query which will be shown in an HTML select component
* [MOD] Improved accounts search filtering
* [MOD] Code refactoring
This commit is contained in:
nuxsmin
2018-01-22 01:15:52 +01:00
parent 0f15f10aa4
commit 0ed17a8f46
57 changed files with 1779 additions and 438 deletions

View File

@@ -39,7 +39,7 @@ use SP\Modules\Web\Controllers\Helpers\ItemsGridHelper;
use SP\Modules\Web\Controllers\Traits\ItemTrait;
use SP\Modules\Web\Controllers\Traits\JsonTrait;
use SP\Mvc\Controller\CrudControllerInterface;
use SP\Repositories\Client\ClientRepository;
use SP\Services\Client\ClientService;
/**
* Class ClientController
@@ -52,12 +52,14 @@ class ClientController extends ControllerBase implements CrudControllerInterface
use ItemTrait;
/**
* @var ClientRepository
* @var ClientService
*/
protected $clientService;
/**
* Search action
*
* @throws \SP\Core\Dic\ContainerException
*/
public function searchAction()
{
@@ -267,12 +269,14 @@ class ClientController extends ControllerBase implements CrudControllerInterface
/**
* Initialize class
*
* @throws \SP\Core\Dic\ContainerException
*/
protected function initialize()
{
$this->checkLoggedIn();
$this->clientService = new ClientRepository();
$this->clientService = new ClientService();
}
}