SymfonyStyle::askQuestion()

string askQuestion(Question $question) Parameters Question $question Return Value string

SymfonyStyle::askHidden()

string askHidden(string $question, callable|null $validator = null) Asks a question with the user input hidden. Parameters string $question callable|null $validator Return Value string

SymfonyStyle::ask()

string ask(string $question, string|null $default = null, callable|null $validator = null) Asks a question. Parameters string $question string|null $default callable|null $validator Return Value string

SymfonyStyle

class SymfonyStyle extends OutputStyle Output decorator helpers for the Symfony Style Guide. Constants MAX_LINE_LENGTH Methods __construct(InputInterface $input, OutputInterface $output) newLine(int $count = 1) Add newline(s). ProgressBar createProgressBar(int $max) write(string|array $messages, bool $newline = false, $type = self::OUTPUT_NORMAL) Writes a message to the output. writeln(string|array $messages, $type = self::OUTPUT_NORMAL) Writes a message to th

SymfonyQuestionHelper

class SymfonyQuestionHelper extends QuestionHelper Symfony Style Guide compliant question helper. Methods setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. from Helper HelperSet getHelperSet() Gets the helper set associated with this helper. from Helper static int strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. from Helper static formatTime($secs) from Helper static formatMemory($memory

SwitchUserRole

class SwitchUserRole extends Role SwitchUserRole is used when the current user temporarily impersonates another one. Methods __construct(string $role, TokenInterface $source) Constructor. string|null getRole() Returns the role. from Role TokenInterface getSource() Returns the original Token. Details __construct(string $role, TokenInterface $source) Constructor. Parameters string $role The role name TokenInterface $source The origina

SwitchUserListener

class SwitchUserListener implements ListenerInterface SwitchUserListener allows a user to impersonate another one temporarily (like the Unix su command). Methods __construct(TokenStorageInterface $tokenStorage, UserProviderInterface $provider, UserCheckerInterface $userChecker, $providerKey, AccessDecisionManagerInterface $accessDecisionManager, LoggerInterface $logger = null, $usernameParameter = '_switch_user', $role = 'ROLE_ALLOWED_TO_SWITCH', EventDispatcherInterface $dispatcher = nu

SwitchUserEvent::getTargetUser()

UserInterface getTargetUser() Return Value UserInterface

SwitchUserEvent::getRequest()

Request getRequest() Return Value Request

SwitchUserEvent

class SwitchUserEvent extends Event SwitchUserEvent. Methods bool isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event setDispatcher(EventDispatcherInterface $dispatcher) deprecated Stores the EventDispatcher that dispatches this Event. from Event EventDispatcherInterface getDispatcher() deprecated Returns the EventDispatcher that dispatches th