Commit 7426d53a authored by Fabien Potencier's avatar Fabien Potencier

fixed some phpdocs, added some missing

parent 096d2015
...@@ -18,7 +18,7 @@ use Symfony\Component\Routing\Route; ...@@ -18,7 +18,7 @@ use Symfony\Component\Routing\Route;
/** /**
* A wrapper for a controller, mapped to a route. * A wrapper for a controller, mapped to a route.
* *
* @author Igor Wiedler igor@wiedler.ch * @author Igor Wiedler <igor@wiedler.ch>
*/ */
class Controller class Controller
{ {
......
...@@ -20,7 +20,7 @@ use Symfony\Component\Routing\RouteCollection; ...@@ -20,7 +20,7 @@ use Symfony\Component\Routing\RouteCollection;
* until flush() is called, at which point all controllers are frozen and * until flush() is called, at which point all controllers are frozen and
* added to the RouteCollection. * added to the RouteCollection.
* *
* @author Igor Wiedler igor@wiedler.ch * @author Igor Wiedler <igor@wiedler.ch>
*/ */
class ControllerCollection class ControllerCollection
{ {
......
...@@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Log\LoggerInterface; ...@@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
/** /**
* ControllerResolver. * Adds Application as a valid argument for controllers.
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
......
...@@ -14,7 +14,7 @@ namespace Silex\Exception; ...@@ -14,7 +14,7 @@ namespace Silex\Exception;
/** /**
* Exception, is thrown when a frozen controller is modified * Exception, is thrown when a frozen controller is modified
* *
* @author Igor Wiedler igor@wiedler.ch * @author Igor Wiedler <igor@wiedler.ch>
*/ */
class ControllerFrozenException extends \RuntimeException class ControllerFrozenException extends \RuntimeException
{ {
......
...@@ -17,6 +17,11 @@ use Doctrine\DBAL\DriverManager; ...@@ -17,6 +17,11 @@ use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Configuration;
use Doctrine\Common\EventManager; use Doctrine\Common\EventManager;
/**
* Doctrine DBAL extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class DoctrineExtension implements ExtensionInterface class DoctrineExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -19,6 +19,11 @@ use Symfony\Component\Form\Extension\Core\CoreExtension; ...@@ -19,6 +19,11 @@ use Symfony\Component\Form\Extension\Core\CoreExtension;
use Symfony\Component\Form\Extension\Validator\ValidatorExtension as FormValidatorExtension; use Symfony\Component\Form\Extension\Validator\ValidatorExtension as FormValidatorExtension;
use Symfony\Component\Form\Extension\Csrf\CsrfExtension; use Symfony\Component\Form\Extension\Csrf\CsrfExtension;
/**
* Symfony Form component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class FormExtension implements ExtensionInterface class FormExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -17,6 +17,11 @@ use Silex\HttpCache; ...@@ -17,6 +17,11 @@ use Silex\HttpCache;
use Symfony\Component\HttpKernel\HttpCache\Esi; use Symfony\Component\HttpKernel\HttpCache\Esi;
use Symfony\Component\HttpKernel\HttpCache\Store; use Symfony\Component\HttpKernel\HttpCache\Store;
/**
* Symfony HttpKernel component extension for HTTP cache.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class HttpCacheExtension implements ExtensionInterface class HttpCacheExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -19,6 +19,11 @@ use Silex\ExtensionInterface; ...@@ -19,6 +19,11 @@ use Silex\ExtensionInterface;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* Monolog extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class MonologExtension implements ExtensionInterface class MonologExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -18,6 +18,11 @@ use Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage; ...@@ -18,6 +18,11 @@ use Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage;
use Symfony\Component\HttpFoundation\Session; use Symfony\Component\HttpFoundation\Session;
use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\KernelEvents;
/**
* Symfony HttpFoundation component extension for sessions.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SessionExtension implements ExtensionInterface class SessionExtension implements ExtensionInterface
{ {
private $app; private $app;
......
...@@ -14,6 +14,11 @@ namespace Silex\Extension; ...@@ -14,6 +14,11 @@ namespace Silex\Extension;
use Silex\Application; use Silex\Application;
use Silex\ExtensionInterface; use Silex\ExtensionInterface;
/**
* Swiftmailer extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SwiftmailerExtension implements ExtensionInterface class SwiftmailerExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -14,6 +14,11 @@ namespace Silex\Extension; ...@@ -14,6 +14,11 @@ namespace Silex\Extension;
use Silex\Application; use Silex\Application;
use Silex\ExtensionInterface; use Silex\ExtensionInterface;
/**
* Symfony bridges extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SymfonyBridgesExtension implements ExtensionInterface class SymfonyBridgesExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -18,6 +18,11 @@ use Symfony\Component\Translation\Translator; ...@@ -18,6 +18,11 @@ use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\MessageSelector; use Symfony\Component\Translation\MessageSelector;
use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\Loader\ArrayLoader;
/**
* Symfony Translation component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class TranslationExtension implements ExtensionInterface class TranslationExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -18,6 +18,11 @@ use Symfony\Bridge\Twig\Extension\RoutingExtension as TwigRoutingExtension; ...@@ -18,6 +18,11 @@ use Symfony\Bridge\Twig\Extension\RoutingExtension as TwigRoutingExtension;
use Symfony\Bridge\Twig\Extension\TranslationExtension as TwigTranslationExtension; use Symfony\Bridge\Twig\Extension\TranslationExtension as TwigTranslationExtension;
use Symfony\Bridge\Twig\Extension\FormExtension as TwigFormExtension; use Symfony\Bridge\Twig\Extension\FormExtension as TwigFormExtension;
/**
* Twig extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class TwigExtension implements ExtensionInterface class TwigExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -16,6 +16,11 @@ use Silex\ExtensionInterface; ...@@ -16,6 +16,11 @@ use Silex\ExtensionInterface;
use Symfony\Component\Routing\Generator\UrlGenerator; use Symfony\Component\Routing\Generator\UrlGenerator;
/**
* Symfony Routing component extension for URL generation.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class UrlGeneratorExtension implements ExtensionInterface class UrlGeneratorExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -19,6 +19,11 @@ use Symfony\Component\Validator\Mapping\ClassMetadataFactory; ...@@ -19,6 +19,11 @@ use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader; use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader;
use Symfony\Component\Validator\ConstraintValidatorFactory; use Symfony\Component\Validator\ConstraintValidatorFactory;
/**
* Symfony Validator component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class ValidatorExtension implements ExtensionInterface class ValidatorExtension implements ExtensionInterface
{ {
public function register(Application $app) public function register(Application $app)
......
...@@ -11,7 +11,17 @@ ...@@ -11,7 +11,17 @@
namespace Silex; namespace Silex;
/**
* Interface that must implement all Silex extensions.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface ExtensionInterface interface ExtensionInterface
{ {
/**
* Registers an extension.
*
* @param Application $app An Application instance
*/
function register(Application $app); function register(Application $app);
} }
...@@ -16,6 +16,8 @@ use Symfony\Component\Routing\Matcher\RedirectableUrlMatcher as BaseRedirectable ...@@ -16,6 +16,8 @@ use Symfony\Component\Routing\Matcher\RedirectableUrlMatcher as BaseRedirectable
use Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface; use Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface;
/** /**
* Implements the RedirectableUrlMatcherInterface for Silex.
*
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
namespace Silex; namespace Silex;
/** /**
* The Silex events.
*
* @author Igor Wiedler <igor@wiedler.ch> * @author Igor Wiedler <igor@wiedler.ch>
*/ */
final class SilexEvents final class SilexEvents
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment