Skip to content

Commit 9544fc7

Browse files
authored
Merge pull request #203 from alister/psr-4-ize
Move code into subdirectories and PSR-4
2 parents 2c02ab5 + 596182e commit 9544fc7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+45
-41
lines changed

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@
2929
"symfony/framework-bundle": "^4.3|^5.0"
3030
},
3131
"autoload": {
32-
"psr-0": {
33-
"Debril\\RssAtomBundle": ""
32+
"psr-4": {
33+
"Debril\\RssAtomBundle\\": "src/"
34+
}
35+
},
36+
"autoload-dev": {
37+
"psr-4": {
38+
"Debril\\RssAtomBundle\\Tests\\": "tests/"
3439
}
3540
},
36-
"target-dir": "Debril/RssAtomBundle",
3741
"config": {
3842
"platform": {
3943
"php": "7.1.27"

phpunit.xml.dist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
3+
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
44

55
<php>
6-
<server name="KERNEL_DIR" value="Tests/Controller/App" />
6+
<server name="KERNEL_DIR" value="tests/Controller/App" />
77
<server name="KERNEL_CLASS" value="Debril\RssAtomBundle\Tests\Controller\App\AppKernel" />
88
</php>
99

@@ -15,12 +15,12 @@
1515

1616
<filter>
1717
<whitelist>
18-
<directory>./</directory>
18+
<directory>src/</directory>
1919
<exclude>
20-
<directory>./DependencyInjection</directory>
21-
<directory>./Resources</directory>
22-
<directory>./Tests</directory>
23-
<directory>./vendor</directory>
20+
<directory>src/DependencyInjection</directory>
21+
<directory>src/Resources</directory>
22+
<directory>tests</directory>
23+
<directory>vendor</directory>
2424
</exclude>
2525
</whitelist>
2626
</filter>
File renamed without changes.
File renamed without changes.

Exception/FeedException/FeedCannotBeReadException.php renamed to src/Exception/FeedException/FeedCannotBeReadException.php

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)