Skip to content

Commit 1d02ae3

Browse files
committed
Maintain | Rework bundle structure to match Symfony best practices
1 parent a5d61b3 commit 1d02ae3

File tree

329 files changed

+31
-31
lines changed

Some content is hidden

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

329 files changed

+31
-31
lines changed

.gitattributes

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
/Makefile export-ignore
55
/phpstan.neon export-ignore
66
/phpunit.xml.dist export-ignore
7-
/Resources/doc export-ignore
8-
/Tests export-ignore
7+
/docs export-ignore
8+
/tests export-ignore

.php-cs-fixer.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
->setRiskyAllowed(true)
3535
->setFinder(
3636
PhpCsFixer\Finder::create()
37-
->in(__DIR__)
37+
->in(__DIR__.'/src')
38+
->in(__DIR__.'/tests')
3839
)
3940
;

CHANGELOG.md

+5-1

README.md

+3-3

composer.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,14 @@
141141

142142
"autoload": {
143143
"psr-4": {
144-
"HWI\\Bundle\\OAuthBundle\\": ""
145-
},
146-
"exclude-from-classmap": [
147-
"/Test/",
148-
"/Tests/"
149-
]
144+
"HWI\\Bundle\\OAuthBundle\\": "src/"
145+
}
150146
},
151147

152148
"autoload-dev": {
153149
"psr-4": {
154-
"HWI\\Bundle\\OAuthBundle\\Test\\": "Test/",
155-
"HWI\\Bundle\\OAuthBundle\\Tests\\": "Tests/"
150+
"HWI\\Bundle\\OAuthBundle\\Test\\": "src/Test/",
151+
"HWI\\Bundle\\OAuthBundle\\Tests\\": "tests/"
156152
}
157153
},
158154

Resources/doc/1-setting_up_the_bundle.md docs/1-setting_up_the_bundle.md

+1-1

Resources/doc/3-configuring_the_security_layer.md docs/3-configuring_the_security_layer.md

+2-2

phpstan.neon

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
parameters:
22
level: 5
33
paths:
4-
- .
4+
- src/
5+
- tests/
56
excludePaths:
67
# Symfony <5.4 BC layer
7-
- DependencyInjection/Security/Factory/OAuthFactory.php
8-
- Security/Core/Authentication/Provider/OAuthProvider.php
9-
- Security/Core/Exception/AccountNotLinkedException.php
10-
- Security/Core/User/OAuthAwareUserProviderInterface.php
11-
- Security/Http/Firewall/OAuthListener.php
12-
- Tests/Security/Core/Authentication/Provider/OAuthProviderTest.php
8+
- src/DependencyInjection/Security/Factory/OAuthFactory.php
9+
- src/Security/Core/Authentication/Provider/OAuthProvider.php
10+
- src/Security/Core/Exception/AccountNotLinkedException.php
11+
- src/Security/Core/User/OAuthAwareUserProviderInterface.php
12+
- src/Security/Http/Firewall/OAuthListener.php
13+
- tests/Security/Core/Authentication/Provider/OAuthProviderTest.php
1314

1415
- vendor/*
1516
# Symfony <5.4 BC layer

phpunit.xml.dist

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./Tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
44

55
<coverage>
66
<include>
7-
<directory>./</directory>
7+
<directory>./src/</directory>
88
</include>
99
<exclude>
10-
<directory>./Resources</directory>
11-
<directory>./Tests</directory>
12-
<directory>./vendor</directory>
10+
<directory>./src/Resources</directory>
1311
</exclude>
1412
</coverage>
1513

@@ -21,7 +19,7 @@
2119

2220
<testsuites>
2321
<testsuite name="HWIOAuthBundle test suite">
24-
<directory suffix="Test.php">./Tests</directory>
22+
<directory suffix="Test.php">./tests</directory>
2523
</testsuite>
2624
</testsuites>
2725

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.

0 commit comments

Comments
 (0)