Skip to content

Commit d1ef476

Browse files
committed
Fix namespace
1 parent c51b25c commit d1ef476

File tree

6 files changed

+28
-15
lines changed

6 files changed

+28
-15
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Xml Symfony Bundle
1+
# XML Symfony Bundle
22

33
**Created as part of [inspishop][link-inspishop] e-commerce platform by [inspirum][link-inspirum] team.**
44

@@ -18,6 +18,16 @@ Run composer require command:
1818
composer require inspirum/xml-symfony
1919
```
2020

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+
```
2131

2232
## Contributing
2333

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
"description": "Symfony bundle for inspirum/xml library",
44
"keywords": [
55
"inspirum",
6-
"inspishop",
76
"xml",
8-
"api-client",
7+
"xml-reader",
8+
"xml-parser",
9+
"xml-writer",
10+
"xml-builder",
11+
"xml-to-array",
912
"symfony",
1013
"bundle"
1114
],
12-
"homepage": "https://github.com/inspirum/xml-symfony-php",
15+
"homepage": "https://github.com/inspirum/xml-php-symfony",
1316
"license": "MIT",
1417
"type": "library",
1518
"authors": [
@@ -39,12 +42,12 @@
3942
"prefer-stable": true,
4043
"autoload": {
4144
"psr-4": {
42-
"Inspirum\\Xml\\Integration\\Symfony\\": "src"
45+
"Inspirum\\XML\\Integration\\Symfony\\": "src"
4346
}
4447
},
4548
"autoload-dev": {
4649
"psr-4": {
47-
"Inspirum\\Xml\\Integration\\Symfony\\Tests\\": "tests"
50+
"Inspirum\\XML\\Integration\\Symfony\\Tests\\": "tests"
4851
}
4952
},
5053
"config": {

src/XmlBundle.php renamed to src/XMLBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Inspirum\Xml\Integration\Symfony;
5+
namespace Inspirum\XML\Integration\Symfony;
66

77
use Inspirum\XML\Builder\DOMDocumentFactory;
88
use Inspirum\XML\Builder\DefaultDOMDocumentFactory;
@@ -19,7 +19,7 @@
1919
use Symfony\Component\DependencyInjection\Reference;
2020
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
2121

22-
final class XmlBundle extends AbstractBundle
22+
final class XMLBundle extends AbstractBundle
2323
{
2424
public const ALIAS = 'xml';
2525

tests/Service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Inspirum\Xml\Integration\Symfony\Tests;
5+
namespace Inspirum\XML\Integration\Symfony\Tests;
66

77
use Inspirum\XML\Builder\DOMDocumentFactory;
88
use Inspirum\XML\Builder\DefaultDOMDocumentFactory;

tests/XmlBundleTest.php renamed to tests/XMLBundleTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Inspirum\Xml\Integration\Symfony\Tests;
5+
namespace Inspirum\XML\Integration\Symfony\Tests;
66

7-
use Inspirum\Xml\Integration\Symfony\XmlBundle;
7+
use Inspirum\XML\Integration\Symfony\XMLBundle;
88
use PHPUnit\Framework\TestCase;
99
use Symfony\Component\Config\Loader\LoaderInterface;
1010
use Symfony\Component\Filesystem\Filesystem;
1111
use Symfony\Component\HttpKernel\Kernel;
1212

13-
final class XmlBundleTest extends TestCase
13+
final class XMLBundleTest extends TestCase
1414
{
1515
public function testBundle(): void
1616
{
@@ -20,7 +20,7 @@ public function testBundle(): void
2020
*/
2121
public function registerBundles(): iterable
2222
{
23-
return [new XmlBundle()];
23+
return [new XMLBundle()];
2424
}
2525

2626
public function registerContainerConfiguration(LoaderInterface $loader): void
@@ -32,7 +32,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
3232
try {
3333
$kernel->boot();
3434

35-
/** @var \Inspirum\Xml\Integration\Symfony\Tests\Service $service */
35+
/** @var \Inspirum\XML\Integration\Symfony\Tests\Service $service */
3636
$service = $kernel->getContainer()->get(Service::class);
3737

3838
self::assertInstanceOf(Service::class, $service);

tests/config/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
services:
2-
Inspirum\Xml\Integration\Symfony\Tests\Service:
2+
Inspirum\XML\Integration\Symfony\Tests\Service:
33
autowire: true
44
public: true

0 commit comments

Comments
 (0)