Index
A
- AppArgumentValueResolver — Class in namespace Silex
- HttpKernel Argument Resolver for Silex.
- Application — Class 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
- $ControllerResolver — Property in class ControllerResolver
- $MiddlewareListener — Property in class MiddlewareListener
- $ExceptionListenerWrapper — Property in class ExceptionListenerWrapper
- AssetServiceProvider — Class in namespace Silex\Provider
- Symfony Asset component Provider.
- 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.
- $WebTestCase — Property in class WebTestCase
- HttpKernelInterface instance.
B
- BootableProviderInterface — Class in namespace Silex\Api
- Interface for bootable service providers.
- BootableProviderInterface::boot() — Method in class BootableProviderInterface
- Bootstraps the application.
- $Application — Property in class Application
- 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
- MonologServiceProvider::boot() — Method in class MonologServiceProvider
- Bootstraps the application.
- SecurityServiceProvider::boot() — Method in class SecurityServiceProvider
- Bootstraps the application.
- VarDumperServiceProvider::boot() — Method in class VarDumperServiceProvider
- Bootstraps the application.
- Route::before() — Method in class Route
- Sets a callback to handle before triggering the route callback.
C
- ControllerProviderInterface — Class in namespace Silex\Api
- Interface for controller providers.
- ControllerProviderInterface::connect() — Method in class ControllerProviderInterface
- Returns routes to connect to the given application.
- CallbackResolver — Class in namespace Silex
- CallbackResolver::convertCallback() — Method in class CallbackResolver
- Returns a callable given its string representation.
- Controller — Class in namespace Silex
- A wrapper for a controller, mapped to a route.
- Controller::convert() — Method in class Controller
- ControllerCollection — Class in namespace Silex
- Builds Silex controllers.
- $ControllerCollection — Property in class ControllerCollection
- $ControllerCollection — Property in class ControllerCollection
- ControllerCollection::convert() — Method in class ControllerCollection
- ControllerResolver — Class in namespace Silex
- Adds Application as a valid argument for controllers.
- ConverterListener — Class in namespace Silex\EventListener
- Handles converters.
- $ConverterListener — Property in class ConverterListener
- $ExceptionListenerWrapper — Property in class ExceptionListenerWrapper
- ControllerFrozenException — Class in namespace Silex\Exception
- Exception, is thrown when a frozen controller is modified.
- CsrfServiceProvider — Class in namespace Silex\Provider
- Symfony CSRF Security component Provider.
- SecurityServiceProvider::connect() — Method in class SecurityServiceProvider
- Returns routes to connect to the given application.
- ConstraintValidatorFactory — Class in namespace Silex\Provider\Validator
- Uses a service container to create constraint validators with dependencies.
- $ConstraintValidatorFactory — Property in class ConstraintValidatorFactory
- Route::convert() — Method in class Route
- Sets a converter for a route variable.
- $ServiceControllerResolver — Property in class ServiceControllerResolver
- $ServiceControllerResolver — Property in class ServiceControllerResolver
- 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 — Property in class ControllerCollection
- $ControllerCollection — Property in class ControllerCollection
- ControllerCollection::delete() — Method in class ControllerCollection
- Maps a DELETE request to a callable.
- ControllerResolver::doGetArguments() — Method in class ControllerResolver
- $ExceptionHandler — Property in class ExceptionHandler
- DoctrineServiceProvider — Class in namespace Silex\Provider
- Doctrine DBAL Provider.
E
- EventListenerProviderInterface — Class in namespace Silex\Api
- Interface for event listener providers.
- 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.
- $LogListener — Property in class LogListener
- ExceptionHandler — Class in namespace Silex
- Default exception handler.
- ExceptionListenerWrapper — Class in namespace Silex
- Wraps exception listeners.
- ExceptionListenerWrapper::ensureResponse() — Method in class ExceptionListenerWrapper
- ExceptionHandlerServiceProvider — Class in namespace Silex\Provider
F
- Application::finish() — Method in class Application
- Registers a finish filter.
- Application::flush() — Method in class Application
- Flushes the controller collection.
- FormTrait — Class 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.
- FormServiceProvider — Class in namespace Silex\Provider
- Symfony Form component Provider.
- $SecurityServiceProvider — Property in class SecurityServiceProvider
G
- Application::get() — Method in class Application
- Maps a GET request to a callable.
- 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
- LogListener::getSubscribedEvents() — Method in class LogListener
- MiddlewareListener::getSubscribedEvents() — Method in class MiddlewareListener
- StringToResponseListener::getSubscribedEvents() — Method in class StringToResponseListener
- ExceptionHandler::getSubscribedEvents() — Method in class ExceptionHandler
- {@inheritdoc}
- SilexFormExtension::getType() — Method in class SilexFormExtension
- SilexFormExtension::getTypeExtensions() — Method in class SilexFormExtension
- SilexFormExtension::getTypeGuesser() — Method in class SilexFormExtension
- LocaleListener::getSubscribedEvents() — Method in class LocaleListener
- LazyRequestMatcher::getRequestMatcher() — Method in class LazyRequestMatcher
- Returns the corresponding RequestMatcherInterface instance.
- SessionListener::getSession() — Method in class SessionListener
- TestSessionListener::getSession() — Method in class TestSessionListener
- ConstraintValidatorFactory::getInstance() — Method in class ConstraintValidatorFactory
- {@inheritdoc}
- ServiceControllerResolver::getController() — Method in class ServiceControllerResolver
- {@inheritdoc}
- ServiceControllerResolver::getArguments() — Method in class ServiceControllerResolver
- {@inheritdoc}
H
- Application::handle() — Method in class Application
- {@inheritdoc}
- SilexFormExtension::hasType() — Method in class SilexFormExtension
- SilexFormExtension::hasTypeExtensions() — Method in class SilexFormExtension
- HttpCacheServiceProvider — Class in namespace Silex\Provider
- Symfony HttpKernel component Provider for HTTP cache.
- HttpCache — Class in namespace Silex\Provider\HttpCache
- HTTP Cache extension to allow using the run() shortcut.
- HttpFragmentServiceProvider — Class in namespace Silex\Provider
- HttpKernel Fragment integration for Silex.
- HttpKernelServiceProvider — Class in namespace Silex\Provider
- Route::host() — Method in class Route
- Sets the requirement of host on this Route.
I
- SecurityTrait::isGranted() — Method in class SecurityTrait
- Checks if the attributes are granted against the current authentication token and optionally supplied object.
- 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.
- LogListener — Class in namespace Silex\EventListener
- Logs request, response, and exceptions.
- $LogListener — Property in class LogListener
- LogListener::logRequest() — Method in class LogListener
- Logs a request.
- LogListener::logResponse() — Method in class LogListener
- Logs a response.
- LogListener::logException() — Method in class LogListener
- Logs an exception.
- LocaleServiceProvider — Class in namespace Silex\Provider
- Locale Provider.
- LocaleListener — Class in namespace Silex\Provider\Locale
- Initializes the locale based on the current request.
- LazyRequestMatcher — Class in namespace Silex\Provider\Routing
- Implements a lazy UrlMatcher.
- RuntimeLoader::load() — Method in class RuntimeLoader
- {@inheritdoc}
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.
- MonologTrait — Class 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
- MiddlewareListener — Class in namespace Silex\EventListener
- Manages the route middlewares.
- MonologServiceProvider — Class in namespace Silex\Provider
- Monolog Provider.
- LazyRequestMatcher::matchRequest() — Method in class LazyRequestMatcher
- {@inheritdoc}
- Route::method() — Method in class Route
- Sets the requirement for the HTTP method.
N
- FormTrait::namedForm() — Method in class FormTrait
- Creates and returns a named form builder instance.
O
- Application::options() — Method in class Application
- Maps an OPTIONS request to a callable.
- Application::on() — Method in class Application
- Adds an event listener that listens on the specified events.
- ControllerCollection::options() — Method in class ControllerCollection
- Maps an OPTIONS request to a callable.
- ConverterListener::onKernelController() — Method in class ConverterListener
- Handles converters.
- LogListener::onKernelRequest() — Method in class LogListener
- Logs master requests on event KernelEvents::REQUEST.
- LogListener::onKernelResponse() — Method in class LogListener
- Logs master response on event KernelEvents::RESPONSE.
- LogListener::onKernelException() — Method in class LogListener
- Logs uncaught exceptions on event KernelEvents::EXCEPTION.
- 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
- LocaleListener::onKernelRequest() — Method in class LocaleListener
- LocaleListener::onKernelFinishRequest() — Method in class LocaleListener
P
- $Application — Property in class Application
- 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 — Property in class ControllerCollection
- 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
- AppArgumentValueResolver::resolve() — Method in class AppArgumentValueResolver
- {@inheritdoc}
- 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 — Property in class ControllerCollection
- ControllerCollection::requireHttp() — Method in class ControllerCollection
- ControllerCollection::requireHttps() — Method in class ControllerCollection
- $ConverterListener — Property in class ConverterListener
- AssetServiceProvider::register() — Method in class AssetServiceProvider
- CsrfServiceProvider::register() — Method in class CsrfServiceProvider
- DoctrineServiceProvider::register() — Method in class DoctrineServiceProvider
- ExceptionHandlerServiceProvider::register() — Method in class ExceptionHandlerServiceProvider
- {@inheritdoc}
- FormServiceProvider::register() — Method in class FormServiceProvider
- HttpCacheServiceProvider::register() — Method in class HttpCacheServiceProvider
- HttpCache::run() — Method in class HttpCache
- Handles the Request and delivers the Response.
- HttpFragmentServiceProvider::register() — Method in class HttpFragmentServiceProvider
- HttpKernelServiceProvider::register() — Method in class HttpKernelServiceProvider
- {@inheritdoc}
- LocaleServiceProvider::register() — Method in class LocaleServiceProvider
- MonologServiceProvider::register() — Method in class MonologServiceProvider
- RememberMeServiceProvider — Class in namespace Silex\Provider
- Remember-me authentication for the SecurityServiceProvider.
- RememberMeServiceProvider::register() — Method in class RememberMeServiceProvider
- RoutingServiceProvider — Class in namespace Silex\Provider
- Symfony Routing component Provider.
- RoutingServiceProvider::register() — Method in class RoutingServiceProvider
- RedirectableUrlMatcher — Class in namespace Silex\Provider\Routing
- Implements the RedirectableUrlMatcherInterface for Silex.
- RedirectableUrlMatcher::redirect() — Method in class RedirectableUrlMatcher
- {@inheritdoc}
- SecurityServiceProvider::register() — Method in class SecurityServiceProvider
- SerializerServiceProvider::register() — Method in class SerializerServiceProvider
- {@inheritdoc}
- ServiceControllerServiceProvider::register() — Method in class ServiceControllerServiceProvider
- SessionServiceProvider::register() — Method in class SessionServiceProvider
- SwiftmailerServiceProvider::register() — Method in class SwiftmailerServiceProvider
- TranslationServiceProvider::register() — Method in class TranslationServiceProvider
- TwigServiceProvider::register() — Method in class TwigServiceProvider
- RuntimeLoader — Class in namespace Silex\Provider\Twig
- Loads Twig extension runtimes via Pimple.
- ValidatorServiceProvider::register() — Method in class ValidatorServiceProvider
- VarDumperServiceProvider::register() — Method in class VarDumperServiceProvider
- Route — Class 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.
S
- EventListenerProviderInterface::subscribe() — Method in class EventListenerProviderInterface
- AppArgumentValueResolver::supports() — Method in class AppArgumentValueResolver
- {@inheritdoc}
- Application::stream() — Method in class Application
- Creates a streaming response.
- Application::sendFile() — Method in class Application
- Sends a file.
- SecurityTrait — Class in namespace Silex\Application
- Security trait.
- SwiftmailerTrait — Class in namespace Silex\Application
- Swiftmailer trait.
- StringToResponseListener — Class in namespace Silex\EventListener
- Converts string responses to proper Response instances.
- ExceptionListenerWrapper::shouldRun() — Method in class ExceptionListenerWrapper
- ExceptionHandlerServiceProvider::subscribe() — Method in class ExceptionHandlerServiceProvider
- SilexFormExtension — Class in namespace Silex\Provider\Form
- HttpCacheServiceProvider::subscribe() — Method in class HttpCacheServiceProvider
- HttpFragmentServiceProvider::subscribe() — Method in class HttpFragmentServiceProvider
- HttpKernelServiceProvider::subscribe() — Method in class HttpKernelServiceProvider
- LocaleServiceProvider::subscribe() — Method in class LocaleServiceProvider
- RememberMeServiceProvider::subscribe() — Method in class RememberMeServiceProvider
- RoutingServiceProvider::subscribe() — Method in class RoutingServiceProvider
- SecurityServiceProvider — Class in namespace Silex\Provider
- Symfony Security component Provider.
- SecurityServiceProvider::subscribe() — Method in class SecurityServiceProvider
- SerializerServiceProvider — Class in namespace Silex\Provider
- Symfony Serializer component Provider.
- ServiceControllerServiceProvider — Class in namespace Silex\Provider
- SessionServiceProvider — Class in namespace Silex\Provider
- Symfony HttpFoundation component Provider for sessions.
- SessionServiceProvider::subscribe() — Method in class SessionServiceProvider
- SessionListener — Class in namespace Silex\Provider\Session
- Sets the session in the request.
- SwiftmailerServiceProvider — Class in namespace Silex\Provider
- Swiftmailer Provider.
- SwiftmailerServiceProvider::subscribe() — Method in class SwiftmailerServiceProvider
- TranslationServiceProvider::subscribe() — Method in class TranslationServiceProvider
- $ConstraintValidatorFactory — Property in class ConstraintValidatorFactory
- SecurityTrait — Class in namespace Silex\Route
- Security trait.
- SecurityTrait::secure() — Method in class SecurityTrait
- ServiceControllerResolver — Class in namespace Silex
- Enables nameofservice:method_name syntax for declaring controllers.
- WebTestCase::setUp() — Method in class WebTestCase
- PHPUnit setUp for setting up the application.
T
- Application::terminate() — Method in class Application
- {@inheritdoc}
- TranslationTrait — Class 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.
- TwigTrait — Class in namespace Silex\Application
- Twig trait.
- MonologServiceProvider::translateLevel() — Method in class MonologServiceProvider
- TestSessionListener — Class in namespace Silex\Provider\Session
- Simulates sessions for testing purpose.
- TranslationServiceProvider — Class in namespace Silex\Provider
- Symfony Translation component Provider.
- TwigServiceProvider — Class in namespace Silex\Provider
- Twig integration for Silex.
U
- UrlGeneratorTrait — Class in namespace Silex\Application
- UrlGenerator trait.
- UrlGeneratorTrait::url() — Method in class UrlGeneratorTrait
- Generates an absolute URL from the given parameters.
V
- Application::view() — Method in class Application
- Registers a view handler.
- Controller::value() — Method in class Controller
- ControllerCollection::value() — Method in class ControllerCollection
- ValidatorServiceProvider — Class in namespace Silex\Provider
- Symfony Validator component Provider.
- VarDumperServiceProvider — Class in namespace Silex\Provider
- Symfony Var Dumper component Provider.
- Route::value() — Method in class Route
- Sets the default value for a route variable.
- ViewListenerWrapper — Class in namespace Silex
- Wraps view listeners.
W
- Controller::when() — Method in class Controller
- ControllerCollection::when() — Method in class ControllerCollection
- Route::when() — Method in class Route
- Sets a condition for the route to match.
- WebTestCase — Class in namespace Silex
- WebTestCase is the base class for functional tests.
_
- AppArgumentValueResolver::__construct() — Method in class AppArgumentValueResolver
- Application::__construct() — Method in class Application
- Instantiate a new Application.
- CallbackResolver::__construct() — Method in class CallbackResolver
- Controller::__construct() — Method in class Controller
- Constructor.
- Controller::__call() — Method in class Controller
- ControllerCollection::__construct() — Method in class ControllerCollection
- ControllerCollection::__call() — Method in class ControllerCollection
- ControllerResolver::__construct() — Method in class ControllerResolver
- Constructor.
- ConverterListener::__construct() — Method in class ConverterListener
- Constructor.
- LogListener::__construct() — Method in class LogListener
- 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
- SilexFormExtension::__construct() — Method in class SilexFormExtension
- LocaleListener::__construct() — Method in class LocaleListener
- LazyRequestMatcher::__construct() — Method in class LazyRequestMatcher
- SessionListener::__construct() — Method in class SessionListener
- TestSessionListener::__construct() — Method in class TestSessionListener
- RuntimeLoader::__construct() — Method in class RuntimeLoader
- ConstraintValidatorFactory::__construct() — Method in class ConstraintValidatorFactory
- Constructor.
- Route::__construct() — Method in class Route
- Constructor.
- ServiceControllerResolver::__construct() — Method in class ServiceControllerResolver
- Constructor.
- ViewListenerWrapper::__construct() — Method in class ViewListenerWrapper
- Constructor.
- ViewListenerWrapper::__invoke() — Method in class ViewListenerWrapper