Skip to content

Commit

Permalink
fixed some phpdocs, added some missing
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 21, 2011
1 parent 096d201 commit 7426d53
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Silex/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/ControllerCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/ControllerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\HttpFoundation\Request;

/**
* ControllerResolver.
* Adds Application as a valid argument for controllers.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Exception/ControllerFrozenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/DoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/HttpCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/SessionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/SwiftmailerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/SymfonyBridgesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/TranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/UrlGeneratorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Silex/Extension/ValidatorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions src/Silex/ExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 2 additions & 0 deletions src/Silex/RedirectableUrlMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Silex/SilexEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
namespace Silex;

/**
* The Silex events.
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
final class SilexEvents
Expand Down

0 comments on commit 7426d53

Please sign in to comment.