PHP Class WellCommerce\Bundle\LocaleBundle\Command\DeleteLocaleCommand

Author: Adam Piotrowski ([email protected])
Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Afficher le fichier Open project: wellcommerce/wellcommerce

Protected Properties

Свойство Type Description
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$localeRepository WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface

Méthodes publiques

Méthode Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface $localeRepository ) DeleteLocaleCommand constructor.

Méthodes protégées

Méthode Description
configure ( )
deleteLocaleData ( $localeCode, Symfony\Component\Console\Output\OutputInterface $output ) Deletes the locale
deleteTranslatableEntities ( Doctrine\ORM\EntityRepository $repository, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale, Symfony\Component\Console\Output\OutputInterface $output ) Deletes the translatable entities for locale
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getSourceLocales ( ) : array

Method Details

__construct() public méthode

DeleteLocaleCommand constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface $localeRepository )
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$localeRepository WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface

configure() protected méthode

protected configure ( )

deleteLocaleData() protected méthode

Deletes the locale
protected deleteLocaleData ( $localeCode, Symfony\Component\Console\Output\OutputInterface $output )
$localeCode
$output Symfony\Component\Console\Output\OutputInterface

deleteTranslatableEntities() protected méthode

Deletes the translatable entities for locale
protected deleteTranslatableEntities ( Doctrine\ORM\EntityRepository $repository, WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface $locale, Symfony\Component\Console\Output\OutputInterface $output )
$repository Doctrine\ORM\EntityRepository
$locale WellCommerce\Bundle\LocaleBundle\Entity\LocaleInterface
$output Symfony\Component\Console\Output\OutputInterface

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getSourceLocales() protected méthode

protected getSourceLocales ( ) : array
Résultat array

Property Details

$doctrineHelper protected_oe property

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
Résultat WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$localeRepository protected_oe property

protected LocaleRepositoryInterface,WellCommerce\Bundle\LocaleBundle\Repository $localeRepository
Résultat WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface