File tree Expand file tree Collapse file tree 6 files changed +28
-15
lines changed Expand file tree Collapse file tree 6 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 1
- # Xml Symfony Bundle
1
+ # XML Symfony Bundle
2
2
3
3
** Created as part of [ inspishop] [ link-inspishop ] e-commerce platform by [ inspirum] [ link-inspirum ] team.**
4
4
@@ -18,6 +18,16 @@ Run composer require command:
18
18
composer require inspirum/xml-symfony
19
19
```
20
20
21
+ Enable bundle by adding it to the list of registered bundles in the ` config/bundles.php ` file of your project:
22
+
23
+ ``` php
24
+ <?php
25
+
26
+ return [
27
+ // ...
28
+ Inspirum\XML\Integration\Symfony\XMLBundle::class => ['all' => true],
29
+ ];
30
+ ```
21
31
22
32
## Contributing
23
33
Original file line number Diff line number Diff line change 3
3
"description" : " Symfony bundle for inspirum/xml library" ,
4
4
"keywords" : [
5
5
" inspirum" ,
6
- " inspishop" ,
7
6
" xml" ,
8
- " api-client" ,
7
+ " xml-reader" ,
8
+ " xml-parser" ,
9
+ " xml-writer" ,
10
+ " xml-builder" ,
11
+ " xml-to-array" ,
9
12
" symfony" ,
10
13
" bundle"
11
14
],
12
- "homepage" : " https://github.com/inspirum/xml-symfony- php" ,
15
+ "homepage" : " https://github.com/inspirum/xml-php-symfony " ,
13
16
"license" : " MIT" ,
14
17
"type" : " library" ,
15
18
"authors" : [
39
42
"prefer-stable" : true ,
40
43
"autoload" : {
41
44
"psr-4" : {
42
- "Inspirum\\ Xml \\ Integration\\ Symfony\\ " : " src"
45
+ "Inspirum\\ XML \\ Integration\\ Symfony\\ " : " src"
43
46
}
44
47
},
45
48
"autoload-dev" : {
46
49
"psr-4" : {
47
- "Inspirum\\ Xml \\ Integration\\ Symfony\\ Tests\\ " : " tests"
50
+ "Inspirum\\ XML \\ Integration\\ Symfony\\ Tests\\ " : " tests"
48
51
}
49
52
},
50
53
"config" : {
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Inspirum \Xml \Integration \Symfony ;
5
+ namespace Inspirum \XML \Integration \Symfony ;
6
6
7
7
use Inspirum \XML \Builder \DOMDocumentFactory ;
8
8
use Inspirum \XML \Builder \DefaultDOMDocumentFactory ;
19
19
use Symfony \Component \DependencyInjection \Reference ;
20
20
use Symfony \Component \HttpKernel \Bundle \AbstractBundle ;
21
21
22
- final class XmlBundle extends AbstractBundle
22
+ final class XMLBundle extends AbstractBundle
23
23
{
24
24
public const ALIAS = 'xml ' ;
25
25
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Inspirum \Xml \Integration \Symfony \Tests ;
5
+ namespace Inspirum \XML \Integration \Symfony \Tests ;
6
6
7
7
use Inspirum \XML \Builder \DOMDocumentFactory ;
8
8
use Inspirum \XML \Builder \DefaultDOMDocumentFactory ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Inspirum \Xml \Integration \Symfony \Tests ;
5
+ namespace Inspirum \XML \Integration \Symfony \Tests ;
6
6
7
- use Inspirum \Xml \Integration \Symfony \XmlBundle ;
7
+ use Inspirum \XML \Integration \Symfony \XMLBundle ;
8
8
use PHPUnit \Framework \TestCase ;
9
9
use Symfony \Component \Config \Loader \LoaderInterface ;
10
10
use Symfony \Component \Filesystem \Filesystem ;
11
11
use Symfony \Component \HttpKernel \Kernel ;
12
12
13
- final class XmlBundleTest extends TestCase
13
+ final class XMLBundleTest extends TestCase
14
14
{
15
15
public function testBundle (): void
16
16
{
@@ -20,7 +20,7 @@ public function testBundle(): void
20
20
*/
21
21
public function registerBundles (): iterable
22
22
{
23
- return [new XmlBundle ()];
23
+ return [new XMLBundle ()];
24
24
}
25
25
26
26
public function registerContainerConfiguration (LoaderInterface $ loader ): void
@@ -32,7 +32,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
32
32
try {
33
33
$ kernel ->boot ();
34
34
35
- /** @var \Inspirum\Xml \Integration\Symfony\Tests\Service $service */
35
+ /** @var \Inspirum\XML \Integration\Symfony\Tests\Service $service */
36
36
$ service = $ kernel ->getContainer ()->get (Service::class);
37
37
38
38
self ::assertInstanceOf (Service::class, $ service );
Original file line number Diff line number Diff line change 1
1
services :
2
- Inspirum\Xml \Integration\Symfony\Tests\Service :
2
+ Inspirum\XML \Integration\Symfony\Tests\Service :
3
3
autowire : true
4
4
public : true
You can’t perform that action at this time.
0 commit comments