PHP Class Sylius\Bundle\CoreBundle\Installer\Setup\CurrencySetup

Author: Mateusz Zalewski ([email protected])
Inheritance: implements Sylius\Bundle\CoreBundle\Installer\Setup\CurrencySetupInterface
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
__construct ( Sylius\Component\Resource\Repository\RepositoryInterface $currencyRepository, Sylius\Component\Resource\Factory\FactoryInterface $currencyFactory )
setup ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Helper\QuestionHelper $questionHelper )

Private Methods

Méthode Description
getCurrencyCodeFromUser ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Helper\QuestionHelper $questionHelper ) : string
getCurrencyName ( string $code ) : string | null
getNewCurrencyCode ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Helper\QuestionHelper $questionHelper ) : string

Method Details

__construct() public méthode

public __construct ( Sylius\Component\Resource\Repository\RepositoryInterface $currencyRepository, Sylius\Component\Resource\Factory\FactoryInterface $currencyFactory )
$currencyRepository Sylius\Component\Resource\Repository\RepositoryInterface
$currencyFactory Sylius\Component\Resource\Factory\FactoryInterface

setup() public méthode

public setup ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Symfony\Component\Console\Helper\QuestionHelper $questionHelper )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$questionHelper Symfony\Component\Console\Helper\QuestionHelper