Skip to content

Commit

Permalink
Migrate to new dravencms/locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Jan 4, 2018
1 parent ce51903 commit a2d42a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

use Dravencms\Components\BaseControl\BaseControl;
use Dravencms\Components\BaseGrid\BaseGridFactory;
use Dravencms\Locale\CurrentLocale;
use Dravencms\Locale\CurrentLocaleResolver;
use Dravencms\Model\Locale\Repository\LocaleRepository;
use Dravencms\Model\Seo\Repository\RobotsRepository;
use Kdyby\Doctrine\EntityManager;
Expand Down Expand Up @@ -58,20 +58,20 @@ class RobotsGrid extends BaseControl
* @param RobotsRepository $robotsRepository
* @param BaseGridFactory $baseGridFactory
* @param EntityManager $entityManager
* @param CurrentLocale $currentLocale
* @param CurrentLocaleResolver $currentLocaleResolver
*/
public function __construct(
RobotsRepository $robotsRepository,
BaseGridFactory $baseGridFactory,
EntityManager $entityManager,
CurrentLocale $currentLocale
CurrentLocaleResolver $currentLocaleResolver
)
{
parent::__construct();

$this->baseGridFactory = $baseGridFactory;
$this->robotsRepository = $robotsRepository;
$this->currentLocale = $currentLocale;
$this->currentLocale = $currentLocaleResolver->getCurrentLocale();
$this->entityManager = $entityManager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

use Dravencms\Components\BaseControl\BaseControl;
use Dravencms\Components\BaseGrid\BaseGridFactory;
use Dravencms\Locale\CurrentLocale;
use Dravencms\Locale\CurrentLocaleResolver;
use Dravencms\Model\Locale\Repository\LocaleRepository;
use Dravencms\Model\Seo\Repository\TrackingRepository;
use Kdyby\Doctrine\EntityManager;
Expand Down Expand Up @@ -58,20 +58,20 @@ class TrackingGrid extends BaseControl
* @param TrackingRepository $trackingRepository
* @param BaseGridFactory $baseGridFactory
* @param EntityManager $entityManager
* @param CurrentLocale $currentLocale
* @param CurrentLocaleResolver $currentLocaleResolver
*/
public function __construct(
TrackingRepository $trackingRepository,
BaseGridFactory $baseGridFactory,
EntityManager $entityManager,
CurrentLocale $currentLocale
CurrentLocaleResolver $currentLocaleResolver
)
{
parent::__construct();

$this->baseGridFactory = $baseGridFactory;
$this->trackingRepository = $trackingRepository;
$this->currentLocale = $currentLocale;
$this->currentLocale = $currentLocaleResolver->getCurrentLocale();
$this->entityManager = $entityManager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

use Dravencms\Components\BaseControl\BaseControl;
use Dravencms\Components\BaseGrid\BaseGridFactory;
use Dravencms\Locale\CurrentLocale;
use Dravencms\Locale\CurrentLocaleResolver;
use Dravencms\Model\Locale\Repository\LocaleRepository;
use Dravencms\Model\Seo\Repository\TrackingServiceRepository;
use Kdyby\Doctrine\EntityManager;
Expand Down Expand Up @@ -58,20 +58,20 @@ class TrackingServiceGrid extends BaseControl
* @param TrackingServiceRepository $trackingServiceRepository
* @param BaseGridFactory $baseGridFactory
* @param EntityManager $entityManager
* @param CurrentLocale $currentLocale
* @param CurrentLocaleResolver $currentLocaleResolver
*/
public function __construct(
TrackingServiceRepository $trackingServiceRepository,
BaseGridFactory $baseGridFactory,
EntityManager $entityManager,
CurrentLocale $currentLocale
CurrentLocaleResolver $currentLocaleResolver
)
{
parent::__construct();

$this->baseGridFactory = $baseGridFactory;
$this->trackingServiceRepository = $trackingServiceRepository;
$this->currentLocale = $currentLocale;
$this->currentLocale = $currentLocaleResolver->getCurrentLocale();
$this->entityManager = $entityManager;
}

Expand Down

0 comments on commit a2d42a4

Please sign in to comment.