Skip to content

Commit 796af11

Browse files
committed
Renamed ApiBundle to BuilderBundle
1 parent e0388bb commit 796af11

File tree

12 files changed

+27
-27
lines changed

12 files changed

+27
-27
lines changed

Symfony/app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function registerBundles()
1616
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
1717
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
1818
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
19-
new Codebender\ApiBundle\CodebenderApiBundle(),
19+
new Codebender\BuilderBundle\CodebenderBuilderBundle(),
2020
);
2121

2222
if (in_array($this->getEnvironment(), array('dev', 'test'))) {

Symfony/app/config/routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
codebenderApiBundle:
2-
resource: "@CodebenderApiBundle/Resources/config/routing.yml"
1+
codebenderBuilderBundle:
2+
resource: "@CodebenderBuilderBundle/Resources/config/routing.yml"
33
prefix: /
44

Symfony/src/Codebender/ApiBundle/CodebenderApiBundle.php

Lines changed: 0 additions & 9 deletions
This file was deleted.

Symfony/src/Codebender/ApiBundle/Resources/config/routing.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Codebender\BuilderBundle;
4+
5+
use Symfony\Component\HttpKernel\Bundle\Bundle;
6+
7+
class CodebenderBuilderBundle extends Bundle
8+
{
9+
}

Symfony/src/Codebender/ApiBundle/Controller/DefaultController.php renamed to Symfony/src/Codebender/BuilderBundle/Controller/DefaultController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Codebender\ApiBundle\Controller;
3+
namespace Codebender\BuilderBundle\Controller;
44

55
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
66
use Symfony\Component\HttpFoundation\Response;
@@ -14,7 +14,7 @@ class DefaultController extends Controller
1414
/**
1515
* status action
1616
*
17-
* @return Response Response intance.
17+
* @return Response Response instance.
1818
*
1919
*/
2020
public function statusAction()
@@ -130,7 +130,7 @@ protected function compile($contents)
130130
*/
131131
protected function getLibraryInfo($data)
132132
{
133-
$handler = $this->get('codebender_api.handler');
133+
$handler = $this->get('codebender_builder.handler');
134134

135135
$libraryManager = $this->container->getParameter('library');
136136

Symfony/src/Codebender/ApiBundle/DependencyInjection/Configuration.php renamed to Symfony/src/Codebender/BuilderBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface
1818
public function getConfigTreeBuilder()
1919
{
2020
$treeBuilder = new TreeBuilder();
21-
$treeBuilder->root('codebender_api');
21+
$treeBuilder->root('codebender_builder');
2222

2323
// Here you should define the parameters that are allowed to
2424
// configure your bundle. See the documentation linked above for
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CodebenderBuilderBundle_status_check:
2+
pattern: /status
3+
defaults: { _controller: CodebenderBuilderBundle:Default:status }
4+
5+
CodebenderBuilderBundle_handle_request:
6+
pattern: /{auth_key}/{version}
7+
defaults: { _controller: CodebenderBuilderBundle:Default:handleRequest }
8+
requirements:
9+
_method: POST

0 commit comments

Comments
 (0)