NormalizerAwareTrait

trait NormalizerAwareTrait NormalizerAware trait. Methods setNormalizer(NormalizerInterface $normalizer) Sets the normalizer. Details setNormalizer(NormalizerInterface $normalizer) Sets the normalizer. Parameters NormalizerInterface $normalizer A NormalizerInterface instance

TimeValidator

class TimeValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. PATTERN Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator static bool checkTime(int $hour, int $minute, int $second) Checks whether a time is valid. validate(mixed $value, Co

PropertyAccessorInterface::isWritable()

bool isWritable(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns whether a value can be written at a given property path. Whenever this method returns true, {@link setValue()} is guaranteed not to throw an exception when called with the same arguments. Parameters object|array $objectOrArray The object or array to check string|PropertyPathInterface $propertyPath The property path to check Return Value bool Whether the value can be set Exceptions

AssetsHelper

class AssetsHelper extends Helper AssetsHelper helps manage asset URLs. Methods setCharset(string $charset) Sets the default charset. from Helper string getCharset() Gets the default charset. from Helper __construct(Packages $packages) string getUrl(string $path, string $packageName = null) Returns the public url/path of an asset. string getVersion(string $path, string $packageName = null) Returns the version of an asset. string getName() Returns the canonical nam

FormTypeExtensionInterface::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called after the extended type has built the form to further modify it. Parameters FormBuilderInterface $builder The form builder array $options The options See also FormTypeInterface::buildForm()

Finder::notPath()

Finder|SplFileInfo[] notPath(string $pattern) Adds rules that filenames must not match. You can use patterns (delimited with / sign) or simple strings. $finder->notPath('some/special/dir') $finder->notPath('/some\/special\/dir/') // same as above Use only / as dirname separator. Parameters string $pattern A pattern (a regexp or a string) Return Value Finder|SplFileInfo[] The current Finder instance See also FilenameFilterIterator

Application::getLongVersion()

string getLongVersion() Returns the long version of the application. Return Value string The long application version

ServiceRouterLoader

class ServiceRouterLoader extends ObjectRouteLoader A route loader that executes a service to load the routes. This depends on the DependencyInjection component. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null) Imports a resource. from Loader LoaderInterface resolve(mixed $resource, string|null $type =

FormFactory::create()

FormInterface create(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form. Parameters string $type The type of the form mixed $data The initial data array $options The options Return Value FormInterface The form named after the type Exceptions InvalidOptionsException if any given option is not applicable to the given type

LengthRequiredHttpException

class LengthRequiredHttpException extends HttpException LengthRequiredHttpException. Methods __construct($message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct($message = null, Exception $previous = null, $code) Constructor. Parameters $message Exception $previous $code