Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
7426d53a
Commit
7426d53a
authored
Aug 21, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some phpdocs, added some missing
parent
096d2015
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
73 additions
and
4 deletions
+73
-4
src/Silex/Controller.php
src/Silex/Controller.php
+1
-1
src/Silex/ControllerCollection.php
src/Silex/ControllerCollection.php
+1
-1
src/Silex/ControllerResolver.php
src/Silex/ControllerResolver.php
+1
-1
src/Silex/Exception/ControllerFrozenException.php
src/Silex/Exception/ControllerFrozenException.php
+1
-1
src/Silex/Extension/DoctrineExtension.php
src/Silex/Extension/DoctrineExtension.php
+5
-0
src/Silex/Extension/FormExtension.php
src/Silex/Extension/FormExtension.php
+5
-0
src/Silex/Extension/HttpCacheExtension.php
src/Silex/Extension/HttpCacheExtension.php
+5
-0
src/Silex/Extension/MonologExtension.php
src/Silex/Extension/MonologExtension.php
+5
-0
src/Silex/Extension/SessionExtension.php
src/Silex/Extension/SessionExtension.php
+5
-0
src/Silex/Extension/SwiftmailerExtension.php
src/Silex/Extension/SwiftmailerExtension.php
+5
-0
src/Silex/Extension/SymfonyBridgesExtension.php
src/Silex/Extension/SymfonyBridgesExtension.php
+5
-0
src/Silex/Extension/TranslationExtension.php
src/Silex/Extension/TranslationExtension.php
+5
-0
src/Silex/Extension/TwigExtension.php
src/Silex/Extension/TwigExtension.php
+5
-0
src/Silex/Extension/UrlGeneratorExtension.php
src/Silex/Extension/UrlGeneratorExtension.php
+5
-0
src/Silex/Extension/ValidatorExtension.php
src/Silex/Extension/ValidatorExtension.php
+5
-0
src/Silex/ExtensionInterface.php
src/Silex/ExtensionInterface.php
+10
-0
src/Silex/RedirectableUrlMatcher.php
src/Silex/RedirectableUrlMatcher.php
+2
-0
src/Silex/SilexEvents.php
src/Silex/SilexEvents.php
+2
-0
No files found.
src/Silex/Controller.php
View file @
7426d53a
...
@@ -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
{
{
...
...
src/Silex/ControllerCollection.php
View file @
7426d53a
...
@@ -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
{
{
...
...
src/Silex/ControllerResolver.php
View file @
7426d53a
...
@@ -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>
*/
*/
...
...
src/Silex/Exception/ControllerFrozenException.php
View file @
7426d53a
...
@@ -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
{
{
...
...
src/Silex/Extension/DoctrineExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/FormExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/HttpCacheExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/MonologExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/SessionExtension.php
View file @
7426d53a
...
@@ -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
;
...
...
src/Silex/Extension/SwiftmailerExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/SymfonyBridgesExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/TranslationExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/TwigExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/UrlGeneratorExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/Extension/ValidatorExtension.php
View file @
7426d53a
...
@@ -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
)
...
...
src/Silex/ExtensionInterface.php
View file @
7426d53a
...
@@ -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
);
}
}
src/Silex/RedirectableUrlMatcher.php
View file @
7426d53a
...
@@ -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
...
...
src/Silex/SilexEvents.php
View file @
7426d53a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment