Index
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

A

ApplicationClass in namespace Silex
The Silex framework class.
Application::after() — Method in class Application
Registers an after filter.
Application::abort() — Method in class Application
Aborts the current request by sending a proper HTTP error.
Controller::assert() — Method in class Controller
Controller::after() — Method in class Controller
ControllerCollection::assert() — Method in class ControllerCollection
ControllerCollection::after() — Method in class ControllerCollection
SecurityServiceProvider::addFakeRoute() — Method in class SecurityServiceProvider
Route::assert() — Method in class Route
Sets the requirement for a route variable.
Route::after() — Method in class Route
Sets a callback to handle after the route callback.

B

Application::boot() — Method in class Application
Boots all service providers.
Application::before() — Method in class Application
Registers a before filter.
Controller::bind() — Method in class Controller
Sets the controller's route.
Controller::before() — Method in class Controller
ControllerCollection::before() — Method in class ControllerCollection
DoctrineServiceProvider::boot() — Method in class DoctrineServiceProvider
Bootstraps the application.
FormServiceProvider::boot() — Method in class FormServiceProvider
Bootstraps the application.
HttpCacheServiceProvider::boot() — Method in class HttpCacheServiceProvider
Bootstraps the application.
HttpFragmentServiceProvider::boot() — Method in class HttpFragmentServiceProvider
Bootstraps the application.
MonologServiceProvider::boot() — Method in class MonologServiceProvider
Bootstraps the application.
RememberMeServiceProvider::boot() — Method in class RememberMeServiceProvider
Bootstraps the application.
SecurityServiceProvider::boot() — Method in class SecurityServiceProvider
Bootstraps the application.
SerializerServiceProvider::boot() — Method in class SerializerServiceProvider
Bootstraps the application.
ServiceControllerServiceProvider::boot() — Method in class ServiceControllerServiceProvider
Bootstraps the application.
SessionServiceProvider::boot() — Method in class SessionServiceProvider
Bootstraps the application.
SwiftmailerServiceProvider::boot() — Method in class SwiftmailerServiceProvider
Bootstraps the application.
TranslationServiceProvider::boot() — Method in class TranslationServiceProvider
Bootstraps the application.
TwigServiceProvider::boot() — Method in class TwigServiceProvider
Bootstraps the application.
UrlGeneratorServiceProvider::boot() — Method in class UrlGeneratorServiceProvider
Bootstraps the application.
ValidatorServiceProvider::boot() — Method in class ValidatorServiceProvider
Bootstraps the application.
Route::before() — Method in class Route
Sets a callback to handle before triggering the route callback.
ServiceProviderInterface::boot() — Method in class ServiceProviderInterface
Bootstraps the application.

C

CallbackResolverClass in namespace Silex
CallbackResolver::convertCallback() — Method in class CallbackResolver
Returns a callable given its string representation.
ConstraintValidatorFactoryClass in namespace Silex
Uses a service container to create constraint validators with dependencies.
ControllerClass in namespace Silex
A wrapper for a controller, mapped to a route.
Controller::convert() — Method in class Controller
ControllerCollectionClass in namespace Silex
Builds Silex controllers.
ControllerCollection::convert() — Method in class ControllerCollection
ControllerProviderInterfaceClass in namespace Silex
Interface for controller providers.
ControllerProviderInterface::connect() — Method in class ControllerProviderInterface
Returns routes to connect to the given application.
ControllerResolverClass in namespace Silex
Adds Application as a valid argument for controllers.
ConverterListenerClass in namespace Silex\EventListener
Handles converters.
ControllerFrozenExceptionClass in namespace Silex\Exception
Exception, is thrown when a frozen controller is modified
Route::convert() — Method in class Route
Sets a converter for a route variable.
CompilerClass in namespace Silex\Util
The Compiler class compiles the Silex framework.
Compiler::compile() — Method in class Compiler
Compiles the Silex source code into one single Phar file.
WebTestCase::createApplication() — Method in class WebTestCase
Creates the application.
WebTestCase::createClient() — Method in class WebTestCase
Creates a Client.

D

Application::delete() — Method in class Application
Maps a DELETE request to a callable.
ControllerCollection::delete() — Method in class ControllerCollection
Maps a DELETE request to a callable.
ExceptionHandler::disable() — Method in class ExceptionHandler
DoctrineServiceProviderClass in namespace Silex\Provider
Doctrine DBAL Provider.

E

Application::error() — Method in class Application
Registers an error handler.
Application::escape() — Method in class Application
Escapes a text for HTML.
SecurityTrait::encodePassword() — Method in class SecurityTrait
Encodes the raw password.
ExceptionHandlerClass in namespace Silex
Defaults exception handler.
ExceptionListenerWrapperClass in namespace Silex
Wraps exception listeners.

F

Application::finish() — Method in class Application
Registers a finish filter.
Application::flush() — Method in class Application
Flushes the controller collection.
FormTraitClass in namespace Silex\Application
Form trait.
FormTrait::form() — Method in class FormTrait
Creates and returns a form builder instance
Controller::freeze() — Method in class Controller
Freezes the controller.
ControllerCollection::flush() — Method in class ControllerCollection
Persists and freezes staged controllers.
FormServiceProviderClass in namespace Silex\Provider
Symfony Form component Provider.

G

Application::get() — Method in class Application
Maps a GET request to a callable.
ConstraintValidatorFactory::getInstance() — Method in class ConstraintValidatorFactory
Returns the validator for the supplied constraint.
Controller::getRoute() — Method in class Controller
Gets the controller's route.
Controller::getRouteName() — Method in class Controller
Gets the controller's route name.
Controller::generateRouteName() — Method in class Controller
ControllerCollection::get() — Method in class ControllerCollection
Maps a GET request to a callable.
ConverterListener::getSubscribedEvents() — Method in class ConverterListener
MiddlewareListener::getSubscribedEvents() — Method in class MiddlewareListener
StringToResponseListener::getSubscribedEvents() — Method in class StringToResponseListener
ExceptionHandler::getSubscribedEvents() — Method in class ExceptionHandler
{@inheritdoc}
LazyUrlMatcher::getUrlMatcher() — Method in class LazyUrlMatcher
Returns the corresponding UrlMatcherInterface instance.
LazyUrlMatcher::getContext() — Method in class LazyUrlMatcher
{@inheritdoc}
TwigCoreExtension::getFunctions() — Method in class TwigCoreExtension
TwigCoreExtension::getName() — Method in class TwigCoreExtension
ServiceControllerResolver::getController() — Method in class ServiceControllerResolver
{@inheritdoc}
ServiceControllerResolver::getArguments() — Method in class ServiceControllerResolver
{@inheritdoc}
Translator::getLocale() — Method in class Translator

H

Application::handle() — Method in class Application
{@inheritdoc}
HttpCacheClass in namespace Silex
HTTP Cache extension to allow using the run() shortcut.
HttpCacheServiceProviderClass in namespace Silex\Provider
Symfony HttpKernel component Provider for HTTP cache.
HttpFragmentServiceProviderClass in namespace Silex\Provider
HttpKernel Fragment integration for Silex.
Route::host() — Method in class Route
Sets the requirement of host on this Route.

I

CallbackResolver::isValid() — Method in class CallbackResolver
Returns true if the string is a valid service method representation.

J

Application::json() — Method in class Application
Convert some data into a JSON response.

L

MonologTrait::log() — Method in class MonologTrait
Adds a log record.
LocaleListenerClass in namespace Silex\EventListener
Initializes the locale based on the current request.
LazyUrlMatcherClass in namespace Silex
Implements a lazy UrlMatcher.

M

Application::match() — Method in class Application
Maps a pattern to a callable.
Application::mount() — Method in class Application
Mounts controllers under the given route prefix.
MonologTraitClass in namespace Silex\Application
Monolog trait.
SwiftmailerTrait::mail() — Method in class SwiftmailerTrait
Sends an email.
Controller::method() — Method in class Controller
ControllerCollection::mount() — Method in class ControllerCollection
Mounts controllers under the given route prefix.
ControllerCollection::match() — Method in class ControllerCollection
Maps a pattern to a callable.
ControllerCollection::method() — Method in class ControllerCollection
MiddlewareListenerClass in namespace Silex\EventListener
Manages the route middlewares.
LazyUrlMatcher::match() — Method in class LazyUrlMatcher
{@inheritdoc}
MonologServiceProviderClass in namespace Silex\Provider
Monolog Provider.
Route::method() — Method in class Route
Sets the requirement for the HTTP method.

O

Application::on() — Method in class Application
Adds an event listener that listens on the specified events.
ConverterListener::onKernelRequest() — Method in class ConverterListener
Handles converters.
LocaleListener::onKernelRequest() — Method in class LocaleListener
MiddlewareListener::onKernelRequest() — Method in class MiddlewareListener
Runs before filters.
MiddlewareListener::onKernelResponse() — Method in class MiddlewareListener
Runs after filters.
StringToResponseListener::onKernelView() — Method in class StringToResponseListener
Handles string responses.
ExceptionHandler::onSilexError() — Method in class ExceptionHandler
SessionServiceProvider::onEarlyKernelRequest() — Method in class SessionServiceProvider
SessionServiceProvider::onKernelRequest() — Method in class SessionServiceProvider
SessionServiceProvider::onKernelResponse() — Method in class SessionServiceProvider

P

Application::post() — Method in class Application
Maps a POST request to a callable.
Application::put() — Method in class Application
Maps a PUT request to a callable.
Application::patch() — Method in class Application
Maps a PATCH request to a callable.
UrlGeneratorTrait::path() — Method in class UrlGeneratorTrait
Generates a path from the given parameters.
ControllerCollection::post() — Method in class ControllerCollection
Maps a POST request to a callable.
ControllerCollection::put() — Method in class ControllerCollection
Maps a PUT request to a callable.
ControllerCollection::patch() — Method in class ControllerCollection
Maps a PATCH request to a callable.

R

Application::register() — Method in class Application
Registers a service provider.
Application::redirect() — Method in class Application
Redirects the user to another URL.
Application::run() — Method in class Application
Handles the request and delivers the response.
TwigTrait::render() — Method in class TwigTrait
Renders a view and returns a Response.
TwigTrait::renderView() — Method in class TwigTrait
Renders a view.
CallbackResolver::resolveCallback() — Method in class CallbackResolver
Returns a callable given its string representation if it is a valid service method.
Controller::requireHttp() — Method in class Controller
Controller::requireHttps() — Method in class Controller
ControllerCollection::requireHttp() — Method in class ControllerCollection
ControllerCollection::requireHttps() — Method in class ControllerCollection
HttpCache::run() — Method in class HttpCache
Handles the Request and delivers the Response.
DoctrineServiceProvider::register() — Method in class DoctrineServiceProvider
Registers services on the given app.
FormServiceProvider::register() — Method in class FormServiceProvider
Registers services on the given app.
HttpCacheServiceProvider::register() — Method in class HttpCacheServiceProvider
Registers services on the given app.
HttpFragmentServiceProvider::register() — Method in class HttpFragmentServiceProvider
Registers services on the given app.
MonologServiceProvider::register() — Method in class MonologServiceProvider
Registers services on the given app.
RememberMeServiceProviderClass in namespace Silex\Provider
Remember-me authentication for the SecurityServiceProvider
RememberMeServiceProvider::register() — Method in class RememberMeServiceProvider
Registers services on the given app.
SecurityServiceProvider::register() — Method in class SecurityServiceProvider
Registers services on the given app.
SerializerServiceProvider::register() — Method in class SerializerServiceProvider
Registers services on the given app.
ServiceControllerServiceProvider::register() — Method in class ServiceControllerServiceProvider
Registers services on the given app.
SessionServiceProvider::register() — Method in class SessionServiceProvider
Registers services on the given app.
SwiftmailerServiceProvider::register() — Method in class SwiftmailerServiceProvider
Registers services on the given app.
TranslationServiceProvider::register() — Method in class TranslationServiceProvider
Registers services on the given app.
TwigCoreExtension::render() — Method in class TwigCoreExtension
TwigServiceProvider::register() — Method in class TwigServiceProvider
Registers services on the given app.
UrlGeneratorServiceProvider::register() — Method in class UrlGeneratorServiceProvider
Registers services on the given app.
ValidatorServiceProvider::register() — Method in class ValidatorServiceProvider
Registers services on the given app.
RedirectableUrlMatcherClass in namespace Silex
Implements the RedirectableUrlMatcherInterface for Silex.
RedirectableUrlMatcher::redirect() — Method in class RedirectableUrlMatcher
RouteClass in namespace Silex
A wrapper for a controller, mapped to a route.
Route::run() — Method in class Route
Sets the route code that should be executed when matched.
Route::requireHttp() — Method in class Route
Sets the requirement of HTTP (no HTTPS) on this Route.
Route::requireHttps() — Method in class Route
Sets the requirement of HTTPS on this Route.
ServiceProviderInterface::register() — Method in class ServiceProviderInterface
Registers services on the given app.

S

Application::stream() — Method in class Application
Creates a streaming response.
Application::sendFile() — Method in class Application
Sends a file.
SecurityTraitClass in namespace Silex\Application
Security trait.
SwiftmailerTraitClass in namespace Silex\Application
Swiftmailer trait.
StringToResponseListenerClass in namespace Silex\EventListener
Converts string responses to proper Response instances.
LazyUrlMatcher::setContext() — Method in class LazyUrlMatcher
{@inheritdoc}
SecurityServiceProviderClass in namespace Silex\Provider
Symfony Security component Provider.
SerializerServiceProviderClass in namespace Silex\Provider
Symfony Serializer component Provider.
ServiceControllerServiceProviderClass in namespace Silex\Provider
SessionServiceProviderClass in namespace Silex\Provider
Symfony HttpFoundation component Provider for sessions.
SwiftmailerServiceProviderClass in namespace Silex\Provider
Swiftmailer Provider.
SecurityTraitClass in namespace Silex\Route
Security trait.
SecurityTrait::secure() — Method in class SecurityTrait
ServiceControllerResolverClass in namespace Silex
Enables nameofservice:method_name syntax for declaring controllers.
ServiceProviderInterfaceClass in namespace Silex
Interface that all Silex service providers must implement.
Compiler::stripWhitespace() — Method in class Compiler
Removes whitespace from a PHP source string while preserving line numbers.
WebTestCase::setUp() — Method in class WebTestCase
PHPUnit setUp for setting up the application.

T

Application::terminate() — Method in class Application
{@inheritdoc}
TranslationTraitClass in namespace Silex\Application
Translation trait.
TranslationTrait::trans() — Method in class TranslationTrait
Translates the given message.
TranslationTrait::transChoice() — Method in class TranslationTrait
Translates the given choice message by choosing a translation according to a number.
TwigTraitClass in namespace Silex\Application
Twig trait.
MonologServiceProvider::translateLevel() — Method in class MonologServiceProvider
TranslationServiceProviderClass in namespace Silex\Provider
Symfony Translation component Provider.
TwigCoreExtensionClass in namespace Silex\Provider
Twig extension.
TwigServiceProviderClass in namespace Silex\Provider
Twig integration for Silex.
TranslatorClass in namespace Silex
Translator that gets the current locale from the Silex application.

U

SecurityTrait::user() — Method in class SecurityTrait
Gets a user from the Security Context.
UrlGeneratorTraitClass in namespace Silex\Application
UrlGenerator trait.
UrlGeneratorTrait::url() — Method in class UrlGeneratorTrait
Generates an absolute URL from the given parameters.
UrlGeneratorServiceProviderClass in namespace Silex\Provider
Symfony Routing component Provider for URL generation.

V

Controller::value() — Method in class Controller
ControllerCollection::value() — Method in class ControllerCollection
ValidatorServiceProviderClass in namespace Silex\Provider
Symfony Validator component Provider.
Route::value() — Method in class Route
Sets the default value for a route variable.

W

WebTestCaseClass in namespace Silex
WebTestCase is the base class for functional tests.

_

Application::__construct() — Method in class Application
Instantiate a new Application.
CallbackResolver::__construct() — Method in class CallbackResolver
ConstraintValidatorFactory::__construct() — Method in class ConstraintValidatorFactory
Constructor
Controller::__construct() — Method in class Controller
Constructor.
Controller::__call() — Method in class Controller
ControllerCollection::__construct() — Method in class ControllerCollection
Constructor.
ControllerCollection::__call() — Method in class ControllerCollection
ControllerResolver::__construct() — Method in class ControllerResolver
Constructor.
ConverterListener::__construct() — Method in class ConverterListener
Constructor.
LocaleListener::__construct() — Method in class LocaleListener
MiddlewareListener::__construct() — Method in class MiddlewareListener
Constructor.
ExceptionHandler::__construct() — Method in class ExceptionHandler
ExceptionListenerWrapper::__construct() — Method in class ExceptionListenerWrapper
Constructor.
ExceptionListenerWrapper::__invoke() — Method in class ExceptionListenerWrapper
LazyUrlMatcher::__construct() — Method in class LazyUrlMatcher
Route::__construct() — Method in class Route
Constructor.
ServiceControllerResolver::__construct() — Method in class ServiceControllerResolver
Constructor.
Translator::__construct() — Method in class Translator