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

Author: Mateusz Zalewski ([email protected])
Inheritance: implements Sylius\Bundle\CoreBundle\Installer\Setup\CurrencySetupInterface
ファイルを表示 Open project: sylius/sylius

Public Methods

Method 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

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

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 method

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