PHP Class WellCommerce\Bundle\LocaleBundle\Command\DeleteLocaleCommand

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

Protected Properties

Property Type Description
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$localeRepository WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface

Public Methods

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

Protected Methods

Method 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 method

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 method

protected configure ( )

deleteLocaleData() protected method

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

deleteTranslatableEntities() protected method

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 method

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 method

protected getSourceLocales ( ) : array
return array

Property Details

$doctrineHelper protected_oe property

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
return WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$localeRepository protected_oe property

protected LocaleRepositoryInterface,WellCommerce\Bundle\LocaleBundle\Repository $localeRepository
return WellCommerce\Bundle\LocaleBundle\Repository\LocaleRepositoryInterface