RequestDataCollector::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

ConfigDataCollector::getPhpVersion()

string getPhpVersion() Gets the PHP version. Return Value string The PHP version

RequestDataCollector::getRouteParams()

array getRouteParams() Gets the route parameters. The routeparams request attributes is automatically set by the RouterListener. Return Value array The parameters

RouterMatchCommand

class RouterMatchCommand extends ContainerAwareCommand A console command to test route matching. Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command. from Command setHelperSet(HelperSet $helperSet) Sets the helper set. from Command HelperSet getHelperSet() Gets the helper set. from Command App

Route::setPath()

setPath($path) Parameters $path

Form

class Form 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. NOT_SYNCHRONIZED_ERROR NO_SUCH_FIELD_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint Metho

Type

class Type 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. INVALID_TYPE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message $type Methods s

PhpFileLoader

class PhpFileLoader extends FileLoader PhpFileLoader loads routes from a PHP file. The file must return a RouteCollection instance. 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, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInterface resolve

TimedTwigEngine deprecated

class TimedTwigEngine extends TwigEngine deprecated since version 2.7, to be removed in 3.0. Use the Twig native profiler instead. Times the time spent to render a template. Methods __construct(Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, Stopwatch $stopwatch) Constructor. string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. stream(string|TemplateReferenceInterface $name

Application

class Application An Application is the container for a collection of commands. It is the main entry point of a Console application. This class is optimized for a standard CLI environment. Usage: $app = new Application('myapp', '1.0 (stable)'); $app->add(new SimpleCommand()); $app->run(); Methods __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') Constructor. setDispatcher(EventDispatcherInterface $dispatcher) int run(InputInterface $input = null, Output