* [ADD] Unit testing. Work in progress

* [MOD] Code refactoring
This commit is contained in:
nuxsmin
2018-07-22 22:58:13 +02:00
parent 791119f2b6
commit 4cdc33bd37
5 changed files with 9 additions and 13 deletions

View File

@@ -29,7 +29,6 @@ use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\SPException;
use SP\Core\Exceptions\ValidationException;
use SP\Http\JsonResponse;
use SP\Http\Request;
use SP\Modules\Web\Controllers\Helpers\LayoutHelper;
use SP\Modules\Web\Controllers\Traits\JsonTrait;
use SP\Repositories\Track\TrackRequest;
@@ -204,6 +203,6 @@ class UserPassResetController extends ControllerBase
protected function initialize()
{
$this->trackService = $this->dic->get(TrackService::class);
$this->trackRequest = TrackService::getTrackRequest('userPassReset', $this->dic->get(Request::class));
$this->trackRequest = $this->trackService->getTrackRequest($this->controllerName);
}
}