private function configureSourceLocale()
    {
        $em = $this->app->make(EntityManager::class);
        /* @var EntityManager $em */
        $repo = $this->app->make(LocaleRepository::class);
        if ($repo->findOneBy(['isSource' => true]) === null) {
            $locale = LocaleEntity::create('en_US');
            $locale
                ->setIsApproved(true)
                ->setIsSource(true)
            ;
            $em->persist($locale);
            $em->flush($locale);
        }
    }
private function configureSourceLocale()
    {
        $em = $this->app->make(EntityManager::class);
        /* @var EntityManager $em */
        $repo = $this->app->make(LocaleRepository::class);
        if ($repo->findOneBy(['isSource' => true]) === null) {
            $locale = LocaleEntity::create('en_US');
            $locale
                ->setIsApproved(true)
                ->setIsSource(true)
            ;
            $em->persist($locale);
            $em->flush($locale);
        }
    }
private function configureSourceLocale ( ) { $ em = $ this -> app -> make ( EntityManager :: class ) ; /* @var EntityManager $em */ $ repo = $ this -> app -> make ( LocaleRepository :: class ) ; if ( $ repo -> findOneBy ( [ 'isSource' => true ] ) === null ) { $ locale = LocaleEntity :: create ( 'en_US' ) ; $ locale -> setIsApproved ( true ) -> setIsSource ( true ) ; $ em -> persist ( $ locale ) ; $ em -> flush ( $ locale ) ; } }
Configure the source locale.
Configure the source locale .