Skip to content

Commit

Permalink
Changed all php files header
Browse files Browse the repository at this point in the history
* Added editorconfig file
* Edited readme
  • Loading branch information
mmoreram committed Dec 31, 2013
1 parent 8b2ebf5 commit 1afb5ee
Show file tree
Hide file tree
Showing 17 changed files with 97 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; top-most EditorConfig file
root = true

; Unix-style newlines
[*]
end_of_line = LF

[*.php]
indent_style = space
indent_size = 4
5 changes: 4 additions & 1 deletion Annotation/Abstracts/Annotation.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Annotation\Abstracts;
Expand Down
5 changes: 4 additions & 1 deletion Annotation/Flush.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Annotation;
Expand Down
5 changes: 4 additions & 1 deletion Annotation/Form.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Annotation;
Expand Down
5 changes: 4 additions & 1 deletion Annotation/Log.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Annotation;
Expand Down
7 changes: 5 additions & 2 deletions CompilerPass/ResolverCompilerPass.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\CompilerPass;
Expand All @@ -22,7 +25,7 @@ class ResolverCompilerPass implements CompilerPassInterface

/**
* Every service tagged as controllerextra.annotation will be processed
*
*
* @param ContainerBuilder $container Container
*/
public function process(ContainerBuilder $container)
Expand Down
7 changes: 5 additions & 2 deletions ControllerExtraBundle.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle;
Expand Down Expand Up @@ -44,7 +47,7 @@ public function boot()

/**
* Builds bundle
*
*
* @param ContainerBuilder $container Container
*/
public function build(ContainerBuilder $container)
Expand Down
17 changes: 16 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\DependencyInjection;
Expand All @@ -28,6 +31,10 @@ public function getConfigTreeBuilder()

$rootNode
->children()

/**
* Form config definition
*/
->arrayNode('form')
->addDefaultsIfNotSet()
->children()
Expand All @@ -36,6 +43,10 @@ public function getConfigTreeBuilder()
->end()
->end()
->end()

/**
* Flush config definition
*/
->arrayNode('flush')
->addDefaultsIfNotSet()
->children()
Expand All @@ -47,6 +58,10 @@ public function getConfigTreeBuilder()
->end()
->end()
->end()

/**
* Log config definition
*/
->arrayNode('log')
->addDefaultsIfNotSet()
->children()
Expand Down
5 changes: 4 additions & 1 deletion DependencyInjection/ControllerExtraExtension.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\DependencyInjection;
Expand Down
5 changes: 4 additions & 1 deletion EventListener/ResolverEventListener.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\EventListener;
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Table of contents
1. [Installing/Configuring](#installingconfiguring)
* [Tags](#tags)
* [Installing ControllerExtraBundle](#installing-controllerextrabundle)
* [Configuration](#configuration)
* [Tests](#tests)
2. [Annotations](#annotations)
* [@Form](#form)
* [@Flush](#flush)
Expand Down Expand Up @@ -44,8 +46,9 @@ You have to add require line into you composer.json file

Then you have to use composer to update your project dependencies

```
php composer.phar update
``` bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar update
```

And register the bundle in your appkernel.php file
Expand All @@ -58,7 +61,14 @@ return array(
);
```

# Configuration
## Tests
You can test this bundle with this command

``` bash
$ php vendor/phpunit/phpunit/phpunit.php
```

## Configuration

``` yml
controller_extra:
Expand Down
5 changes: 4 additions & 1 deletion Resolver/FlushAnnotationResolver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Resolver;
Expand Down
5 changes: 4 additions & 1 deletion Resolver/FormAnnotationResolver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Resolver;
Expand Down
5 changes: 4 additions & 1 deletion Resolver/Interfaces/AnnotationResolverInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Resolver\Interfaces;
Expand Down
5 changes: 4 additions & 1 deletion Resolver/LogAnnotationResolver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Resolver;
Expand Down
5 changes: 4 additions & 1 deletion Tests/Resolver/FlushAnnotationResolverTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Tests\Resolver;
Expand Down
5 changes: 4 additions & 1 deletion Tests/Resolver/LogAnnotationResolverTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php

/**
* Controller Extra Bundle
* This file is part of the Controller Extra Bundle
*
* @author Marc Morera <[email protected]>
* @since 2013
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Mmoreram\ControllerExtraBundle\Tests\Resolver;
Expand Down

0 comments on commit 1afb5ee

Please sign in to comment.