Skip to content

Commit caaf65e

Browse files
authored
Use Symfony bundle structure
Fix #8
1 parent 23464b1 commit caaf65e

22 files changed

+47
-52
lines changed

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
],
1616
"autoload": {
1717
"psr-4": {
18-
"Yoanm\\SymfonyJsonRpcHttpServer\\App\\": "src/App",
19-
"Yoanm\\SymfonyJsonRpcHttpServer\\Domain\\": "src/Domain",
20-
"Yoanm\\SymfonyJsonRpcHttpServer\\Infra\\": "src/Infra"
18+
"Yoanm\\SymfonyJsonRpcHttpServer\\": "src"
2119
}
2220
},
2321
"autoload-dev": {

features/bootstrap/SymfonyExtensionContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use Symfony\Component\HttpFoundation\Request;
1515
use Yoanm\JsonRpcServer\Domain\Model\JsonRpcMethodInterface;
1616
use Yoanm\JsonRpcServer\Infra\Endpoint\JsonRpcEndpoint;
17-
use Yoanm\SymfonyJsonRpcHttpServer\Infra\Endpoint\JsonRpcHttpEndpoint;
18-
use Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\DependencyInjection\JsonRpcHttpServerExtension;
17+
use Yoanm\SymfonyJsonRpcHttpServer\DependencyInjection\JsonRpcHttpServerExtension;
18+
use Yoanm\SymfonyJsonRpcHttpServer\Endpoint\JsonRpcHttpEndpoint;
1919

2020
/**
2121
* Defines application features from the specific context.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22
return [
33
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
4-
Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\JsonRpcHttpServerBundle::class => ['all' => true],
4+
Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true],
55
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22
return [
33
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
4-
Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\JsonRpcHttpServerBundle::class => ['all' => true],
4+
Yoanm\SymfonyJsonRpcHttpServer\JsonRpcHttpServerBundle::class => ['all' => true],
55
];

features/demo_app/src/AbstractKernel.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
namespace DemoApp;
33

44
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
5-
use Symfony\Component\Config\Loader\LoaderInterface;
6-
use Symfony\Component\DependencyInjection\ContainerBuilder;
75
use Symfony\Component\HttpKernel\Kernel as BaseHttpKernel;
8-
use Symfony\Component\Routing\RouteCollectionBuilder;
96

107
abstract class AbstractKernel extends BaseHttpKernel
118
{

features/demo_app/src/DefaultKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\Routing\RouteCollectionBuilder;
8-
use Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\DependencyInjection\JsonRpcHttpServerExtension;
8+
use Yoanm\SymfonyJsonRpcHttpServer\DependencyInjection\JsonRpcHttpServerExtension;
99

1010
class DefaultKernel extends AbstractKernel implements CompilerPassInterface
1111
{

features/demo_app/src/KernelWithBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\Routing\RouteCollectionBuilder;
8-
use Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\DependencyInjection\JsonRpcHttpServerExtension;
8+
use Yoanm\SymfonyJsonRpcHttpServer\DependencyInjection\JsonRpcHttpServerExtension;
99

1010
class KernelWithBundle extends AbstractKernel implements CompilerPassInterface
1111
{

features/demo_app/src/KernelWithCustomResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Symfony\Component\Config\Loader\LoaderInterface;
55
use Symfony\Component\DependencyInjection\ContainerBuilder;
66
use Symfony\Component\Routing\RouteCollectionBuilder;
7-
use Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\DependencyInjection\JsonRpcHttpServerExtension;
7+
use Yoanm\SymfonyJsonRpcHttpServer\DependencyInjection\JsonRpcHttpServerExtension;
88

99
class KernelWithCustomResolver extends AbstractKernel
1010
{

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
>
3131
<testsuites>
3232
<testsuite name="functional">
33-
<directory>tests/Functional/*</directory>
33+
<directory>tests/Functional</directory>
3434
</testsuite>
3535
<testsuite name="technical">
36-
<directory>tests/Technical/*</directory>
36+
<directory>tests/Technical</directory>
3737
</testsuite>
3838
</testsuites>
3939

src/Infra/Symfony/DependencyInjection/Configuration.php renamed to src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Yoanm\SymfonyJsonRpcHttpServer\Infra\Symfony\DependencyInjection;
2+
namespace Yoanm\SymfonyJsonRpcHttpServer\DependencyInjection;
33

44
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
55
use Symfony\Component\Config\Definition\ConfigurationInterface;

0 commit comments

Comments
 (0)