CheckDefinitionValidityPass

class CheckDefinitionValidityPass implements CompilerPassInterface This pass validates each definition individually only taking the information into account which is contained in the definition itself. Later passes can rely on the following, and specifically do not need to perform these checks themselves: non synthetic, non abstract services always have a class set synthetic services are always public Methods process(ContainerBuilder $container) Processes the ContainerBuilder to validate

OptionsResolver::addAllowedTypes()

OptionsResolver addAllowedTypes(string $option, string|string[] $allowedTypes) Adds allowed types for an option. The types are merged with the allowed types defined previously. Any type for which a corresponding is_() function exists is acceptable. Additionally, fully-qualified class or interface names may be passed. Parameters string $option The option name string|string[] $allowedTypes One or more accepted types Return Value OptionsResolver This instance Exceptions Undefined

ConsoleOutput::setVerbosity()

setVerbosity(int $level) Sets the verbosity of the output. Parameters int $level The level of verbosity (one of the VERBOSITY constants)

KernelInterface

interface KernelInterface implements HttpKernelInterface, Serializable The Kernel is the heart of the Symfony system. It manages an environment made of bundles. Methods Response handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = true) Handles a Request to convert it to a Response. from HttpKernelInterface BundleInterface[] registerBundles() Returns an array of bundles to register. registerContainerConfiguration(LoaderInterface $loader) Loads the container c

UploadedFile::move()

File move(string $directory, string $name = null) Moves the file to a new location. Parameters string $directory The destination folder string $name The new file name Return Value File A File object representing the new file Exceptions FileException if, for any reason, the file could not have been moved

Link

class Link extends AbstractUriElement Link represents an HTML link (an HTML a, area or link tag). Methods __construct(DOMElement $node, string $currentUri, string $method = 'GET') from AbstractUriElement DOMElement getNode() Gets the node associated with this link. from AbstractUriElement string getMethod() Gets the method associated with this link. from AbstractUriElement string getUri() Gets the URI associated with this link. from AbstractUriElement Details

MergeBuilder::allowUnset()

MergeBuilder allowUnset(bool $allow = true) Sets whether the node can be unset. Parameters bool $allow Return Value MergeBuilder

ScopeInterface deprecated

interface ScopeInterface deprecated since version 2.8, to be removed in 3.0. Scope Interface. Methods getName() getParentName() Details getName() getParentName()

ArgvInput::hasParameterOption()

bool hasParameterOption(string|array $values, bool $onlyParams = false) Returns true if the raw parameters (not parsed) contain a value. This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. Parameters string|array $values The values to look for in the raw parameters (can be an array) bool $onlyParams Only check real parameters, skip those following an end of options (--) signal Return Value bool true if the val

ButtonBuilder::setAutoInitialize()

FormConfigBuilderInterface setAutoInitialize(bool $initialize) Unsupported method. Parameters bool $initialize True to initialize the form automatically, false to suppress automatic initialization. In the second case, you need to call {@link FormInterface::initialize()} manually. Return Value FormConfigBuilderInterface The configuration object Exceptions BadMethodCallException