Inline::parse()

static array parse(string $value, int $flags, array $references = array()) Converts a YAML string to a PHP array. Parameters string $value A YAML string int $flags A bit field of PARSE_* constants to customize the YAML parser behavior array $references Mapping of variable names to values Return Value array A PHP array representing the YAML string Exceptions ParseException

FormFactoryBuilderInterface

interface FormFactoryBuilderInterface A builder for FormFactoryInterface objects. Methods FormFactoryBuilderInterface setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory) Sets the factory for creating ResolvedFormTypeInterface instances. FormFactoryBuilderInterface addExtension(FormExtensionInterface $extension) Adds an extension to be loaded by the factory. FormFactoryBuilderInterface addExtensions(array $extensions) Adds a list of extensions to be loa

SessionCsrfProvider deprecated

class SessionCsrfProvider extends DefaultCsrfProvider deprecated since version 2.4, to be removed in 3.0. Use {@link \Symfony\Component\Security\Csrf\CsrfTokenManager} in combination with {@link \Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage} instead. This provider uses a Symfony Session object to retrieve the user's session ID. Methods __construct(Session $session, string $secret) Initializes the provider with a Session object and a secret value. string gener

Locale::setDefaultFallback()

static setDefaultFallback(string $locale) Sets the default fallback locale. The default fallback locale is used as fallback for locales that have no fallback otherwise. Parameters string $locale The default fallback locale See also getFallback()

FormHelper::widget()

string widget(FormView $view, array $variables = array()) Renders the HTML for a given view. Example usage: <?php echo $view['form']->widget($form) ?> You can pass options during the call: <?php echo $view['form']->widget($form, array('attr' => array('class' => 'foo'))) ?> <?php echo $view['form']->widget($form, array('separator' => '+++++')) ?> Parameters FormView $view The view for which to render the widget array $variables Additional v

AccessDecisionManager

class AccessDecisionManager implements AccessDecisionManagerInterface AccessDecisionManager is the base class for all access decision managers that use decision voters. Constants STRATEGY_AFFIRMATIVE STRATEGY_CONSENSUS STRATEGY_UNANIMOUS Methods __construct(array $voters = array(), string $strategy = self::STRATEGY_AFFIRMATIVE, bool $allowIfAllAbstainDecisions = false, bool $allowIfEqualGrantedDeniedDecisions = true) Constructor. setVoters(array $voters) Configures the

InMemoryUserProvider

class InMemoryUserProvider implements UserProviderInterface InMemoryUserProvider is a simple non persistent user provider. Useful for testing, demonstration, prototyping, and for simple needs (a backend with a unique admin for instance) Methods __construct(array $users = array()) Constructor. createUser(UserInterface $user) Adds a new User to the provider. UserInterface loadUserByUsername(string $username) Loads the user for the given username. UserInterface refreshUser(Us

FormConfigBuilder::getOption()

mixed getOption(string $name, mixed $default = null) Returns the value of a specific option. Parameters string $name The option name mixed $default The value returned if the option does not exist Return Value mixed The option value

InputOption::setDefault()

setDefault(mixed $default = null) Sets the default value. Parameters mixed $default The default value Exceptions LogicException When incorrect default value is given

ClassMapGenerator

class ClassMapGenerator ClassMapGenerator. Methods static dump(array|string $dirs, string $file) Generate a class map file. static array createMap(Iterator|string $dir) Iterate over all files in the given directory searching for classes. Details static dump(array|string $dirs, string $file) Generate a class map file. Parameters array|string $dirs Directories or a single path to search in string $file The name of the class map file