Skip to content

Commit bbdacd5

Browse files
authored
Merge pull request #3073 from stof/reorganize_files
Reorganize the source code
2 parents 271c4c6 + 9a7485c commit bbdacd5

File tree

255 files changed

+54
-45
lines changed

Some content is hidden

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

255 files changed

+54
-45
lines changed

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/.gitattributes export-ignore
33
/.gitignore export-ignore
44
/.php-cs-fixer.dist.php export-ignore
5-
/.travis.yml export-ignore
65
/Changelog.md export-ignore
76
/Makefile export-ignore
87
/README.md export-ignore
9-
/Tests export-ignore
8+
/docs/ export-ignore
9+
/tests/ export-ignore
1010
/Upgrade.md export-ignore
1111
/phpunit.xml.dist export-ignore

README.md

+3-10

composer.json

+3-9
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,12 @@
6666
},
6767
"autoload": {
6868
"psr-4": {
69-
"FOS\\UserBundle\\": ""
70-
},
71-
"exclude-from-classmap": [
72-
"/Tests/"
73-
]
69+
"FOS\\UserBundle\\": "src"
70+
}
7471
},
7572
"autoload-dev": {
7673
"psr-4": {
77-
"FOS\\UserBundle\\Tests\\": "/Tests/"
74+
"FOS\\UserBundle\\Tests\\": "tests"
7875
}
79-
},
80-
"support": {
81-
"docs": "https://symfony.com/doc/master/bundles/FOSUserBundle/index.html"
8276
}
8377
}

Resources/doc/adding_invitation_registration.rst renamed to docs/adding_invitation_registration.rst

+15-5

Resources/doc/controller_events.rst renamed to docs/controller_events.rst

+6-2

Resources/doc/form_type.rst renamed to docs/form_type.rst

+3-1

Resources/doc/index.rst renamed to docs/index.rst

+9-3

Resources/doc/user_manager.rst renamed to docs/user_manager.rst

+3-1

phpunit.xml.dist

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
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
<testsuites>
66
<testsuite name="FOSUserBundle test suite">
7-
<directory suffix="Test.php">./Tests</directory>
7+
<directory suffix="Test.php">./tests</directory>
88
</testsuite>
99
</testsuites>
1010

1111
<filter>
1212
<whitelist>
13-
<directory>./</directory>
13+
<directory>src/</directory>
1414
<exclude>
15-
<directory>./Resources</directory>
16-
<directory>./Tests</directory>
17-
<directory>./vendor</directory>
15+
<directory>src/Resources</directory>
1816
</exclude>
1917
</whitelist>
2018
</filter>
2119

2220
<php>
23-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=Tests/ignored-deprecations.txt&amp;max[total]=0" />
21+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="ignoreFile=tests/ignored-deprecations.txt&amp;max[total]=0" />
2422
</php>
2523
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Tests/Routing/RoutingTest.php renamed to tests/Routing/RoutingTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ public function testLoadRouting($routeName, $path, array $methods)
3030
$loader = new XmlFileLoader($locator);
3131

3232
$collection = new RouteCollection();
33-
$collection->addCollection($loader->load(__DIR__.'/../../Resources/config/routing/change_password.xml'));
34-
$subCollection = $loader->load(__DIR__.'/../../Resources/config/routing/profile.xml');
33+
$collection->addCollection($loader->load(__DIR__.'/../../src/Resources/config/routing/change_password.xml'));
34+
$subCollection = $loader->load(__DIR__.'/../../src/Resources/config/routing/profile.xml');
3535
$subCollection->addPrefix('/profile');
3636
$collection->addCollection($subCollection);
37-
$subCollection = $loader->load(__DIR__.'/../../Resources/config/routing/registration.xml');
37+
$subCollection = $loader->load(__DIR__.'/../../src/Resources/config/routing/registration.xml');
3838
$subCollection->addPrefix('/register');
3939
$collection->addCollection($subCollection);
40-
$subCollection = $loader->load(__DIR__.'/../../Resources/config/routing/resetting.xml');
40+
$subCollection = $loader->load(__DIR__.'/../../src/Resources/config/routing/resetting.xml');
4141
$subCollection->addPrefix('/resetting');
4242
$collection->addCollection($subCollection);
43-
$collection->addCollection($loader->load(__DIR__.'/../../Resources/config/routing/security.xml'));
43+
$collection->addCollection($loader->load(__DIR__.'/../../src/Resources/config/routing/security.xml'));
4444

4545
$route = $collection->get($routeName);
4646
$this->assertNotNull($route, sprintf('The route "%s" should exists', $routeName));
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)