Permalink
Browse files

fixed some phpdocs, added some missing

  • Loading branch information...
1 parent 096d201 commit 7426d53a20191c9840b67795129e6a28c6ca671d @fabpot committed Aug 21, 2011
@@ -18,7 +18,7 @@
/**
* 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 @@
* 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\HttpFoundation\Request;
/**
- * ControllerResolver.
+ * Adds Application as a valid argument for controllers.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
@@ -14,7 +14,7 @@
/**
* 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\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\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 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 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\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 @@
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 @@
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\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\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 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\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\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

0 comments on commit 7426d53

Please sign in to comment.