FormTypeInterface::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

ConsoleHandler::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

SecurityContext deprecated

class SecurityContext implements SecurityContextInterface deprecated since version 2.6, to be removed in 3.0. SecurityContext is the main entry point of the Security component. It gives access to the token representing the current user authentication. Methods __construct(TokenStorageInterface|AuthenticationManagerInterface $tokenStorage, AuthorizationCheckerInterface|AccessDecisionManagerInterface $authorizationChecker, bool $alwaysAuthenticate = false) For backwards compatibility, t

ContainerBuilder::findDefinition()

Definition findDefinition(string $id) Gets a service definition by id or alias. The method "unaliases" recursively to return a Definition instance. Parameters string $id The service identifier or alias Return Value Definition A Definition instance Exceptions ServiceNotFoundException if the service definition does not exist

ChoiceToValueTransformer::transform()

mixed transform($choice) Transforms a value from the original representation to a transformed representation. This method is called on two occasions inside a form field: When the form field is initialized with the data attached from the datasource (object or array). When data from a request is submitted using {@link Form::submit()} to transform the new input data back into the renderable format. For example if you have a date field and submit '2009-10-10' you might accept this va

RegionBundleTransformationRule::beforeCompile()

string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation. Return Value string[] The source directories/files of the bundle.

Uuid

class Uuid extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. TOO_SHORT_ERROR TOO_LONG_ERROR INVALID_CHARACTERS_ERROR INVALID_HYPHEN_PLACEMENT_ERROR INVALID_VERSION_ERROR INVALID_VARIANT_ERROR V1_MAC V2_DCE V3_MD5 V4_RANDOM V5_SHA1 Propertie

RegionBundleTransformationRule::getBundleName()

string getBundleName() Returns the name of the compiled resource bundle. Return Value string The name of the bundle.

RoleVoter

class RoleVoter implements VoterInterface RoleVoter votes if any attribute starts with a given prefix. Methods __construct(string $prefix = 'ROLE_') Constructor. int vote(TokenInterface $token, mixed $subject, array $attributes) Returns the vote for the given parameters. Details __construct(string $prefix = 'ROLE_') Constructor. Parameters string $prefix The role prefix int vote(TokenInterface $token, mixed

SerializerInterface::deserialize()

object deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. Parameters mixed $data string $type string $format array $context Return Value object