Skip to content

Commit

Permalink
Merge pull request #56 from mmoreram/feature/removed-boot-method
Browse files Browse the repository at this point in the history
Feature/removed boot method
  • Loading branch information
mmoreram committed Apr 10, 2015
2 parents e87acfe + a3961c1 commit 0fbc7bd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ header: |
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <[email protected]>
*/
*/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ vendor
bin
composer.phar
composer.lock
phpunit.xml
phpunit.xml
46 changes: 2 additions & 44 deletions ControllerExtraBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,57 +25,15 @@
*/
class ControllerExtraBundle extends Bundle
{
/**
* Boots the Bundle.
*/
public function boot()
{
$kernel = $this->container->get('kernel');

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Form.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Flush.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Log.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/JsonResponse.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Paginator.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Entity.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/ObjectManager.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Get.php")
);

AnnotationRegistry::registerFile($kernel
->locateResource("@ControllerExtraBundle/Annotation/Post.php")
);
}

/**
* Builds bundle
*
* @param ContainerBuilder $container Container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);

/**
* Adds compiler passes
*/
Expand Down
19 changes: 15 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
{
"name": "mmoreram/controller-extra-bundle",
"description": "Some specific controller features",
"keywords": ["symfony2", "controller", "annotations", "controller-extra-bundle"],
"keywords": [
"symfony2",
"controller",
"annotations",
"controller-extra-bundle"
],
"homepage": "https://github.com/mmoreram/ControllerExtraBundle",
"type": "symfony-bundle",
"license": "MIT",
"support": {
"email": "[email protected]",
"forum": "https://gitter.im/mmoreram/ControllerExtraBundle",
"source": "https://github.com/mmoreram/ControllerExtraBundle",
"issues": "https://github.com/mmoreram/ControllerExtraBundle/issues"
},
"authors": [
{
"name": "Marc Morera",
Expand Down Expand Up @@ -39,11 +50,11 @@
"doctrine/orm": "to use the @Paginator annotation",
"white-october/pagerfanta-bundle": "to use the @Paginator annotation with Pagerfanta support"
},
"target-dir": "Mmoreram/ControllerExtraBundle",
"autoload": {
"psr-0": { "Mmoreram\\ControllerExtraBundle": "" }
"psr-4": {
"Mmoreram\\ControllerExtraBundle\\": ""
}
},
"minimum-stability": "stable",
"config": {
"bin-dir": "bin"
},
Expand Down

0 comments on commit 0fbc7bd

Please sign in to comment.