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;
/**
* A wrapper for a controller, mapped to a route.
*
* @author Igor Wiedler igor@wiedler.ch
* @author Igor Wiedler <igor@wiedler.ch>
*/
class Controller
{
......
......@@ -20,7 +20,7 @@ use Symfony\Component\Routing\RouteCollection;
* until flush() is called, at which point all controllers are frozen and
* added to the RouteCollection.
*
* @author Igor Wiedler igor@wiedler.ch
* @author Igor Wiedler <igor@wiedler.ch>
*/
class ControllerCollection
{
......
......@@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Request;
/**
* ControllerResolver.
* Adds Application as a valid argument for controllers.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
......
......@@ -14,7 +14,7 @@ namespace Silex\Exception;
/**
* 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
{
......
......@@ -17,6 +17,11 @@ use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Configuration;
use Doctrine\Common\EventManager;
/**
* Doctrine DBAL extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class DoctrineExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -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\Csrf\CsrfExtension;
/**
* Symfony Form component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class FormExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -17,6 +17,11 @@ use Silex\HttpCache;
use Symfony\Component\HttpKernel\HttpCache\Esi;
use Symfony\Component\HttpKernel\HttpCache\Store;
/**
* Symfony HttpKernel component extension for HTTP cache.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class HttpCacheExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -19,6 +19,11 @@ use Silex\ExtensionInterface;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* Monolog extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class MonologExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -18,6 +18,11 @@ use Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage;
use Symfony\Component\HttpFoundation\Session;
use Symfony\Component\HttpKernel\KernelEvents;
/**
* Symfony HttpFoundation component extension for sessions.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SessionExtension implements ExtensionInterface
{
private $app;
......
......@@ -14,6 +14,11 @@ namespace Silex\Extension;
use Silex\Application;
use Silex\ExtensionInterface;
/**
* Swiftmailer extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SwiftmailerExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -14,6 +14,11 @@ namespace Silex\Extension;
use Silex\Application;
use Silex\ExtensionInterface;
/**
* Symfony bridges extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class SymfonyBridgesExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -18,6 +18,11 @@ use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\MessageSelector;
use Symfony\Component\Translation\Loader\ArrayLoader;
/**
* Symfony Translation component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class TranslationExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -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\FormExtension as TwigFormExtension;
/**
* Twig extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class TwigExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -16,6 +16,11 @@ use Silex\ExtensionInterface;
use Symfony\Component\Routing\Generator\UrlGenerator;
/**
* Symfony Routing component extension for URL generation.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class UrlGeneratorExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -19,6 +19,11 @@ use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader;
use Symfony\Component\Validator\ConstraintValidatorFactory;
/**
* Symfony Validator component extension.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class ValidatorExtension implements ExtensionInterface
{
public function register(Application $app)
......
......@@ -11,7 +11,17 @@
namespace Silex;
/**
* Interface that must implement all Silex extensions.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface ExtensionInterface
{
/**
* Registers an extension.
*
* @param Application $app An Application instance
*/
function register(Application $app);
}
......@@ -16,6 +16,8 @@ use Symfony\Component\Routing\Matcher\RedirectableUrlMatcher as BaseRedirectable
use Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface;
/**
* Implements the RedirectableUrlMatcherInterface for Silex.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class RedirectableUrlMatcher extends BaseRedirectableUrlMatcher
......
......@@ -12,6 +12,8 @@
namespace Silex;
/**
* The Silex events.
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
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