Skip to content

Commit

Permalink
Fix: Rename classes to src
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Apr 21, 2018
1 parent 379e051 commit 2e8cc5b
Show file tree
Hide file tree
Showing 117 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ integration: test-env vendor database cache
vendor/bin/phpunit --testsuite integration

stan: vendor
vendor/bin/phpstan analyse --level=2 classes tests
vendor/bin/phpstan analyse --level=2 src tests

test: integration unit

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"autoload": {
"psr-4": {
"OpenCFP\\": "classes/"
"OpenCFP\\": "src/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"timeout": 60,
"source": {
"directories": [
"classes"
"src"
]
},
"logs": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</php>
<filter>
<whitelist>
<directory>classes</directory>
<directory>src</directory>
</whitelist>
</filter>
<testsuites>
Expand Down
2 changes: 1 addition & 1 deletion resources/config/services/console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ services:
autowire: true

OpenCFP\Console\Command\:
resource: '%kernel.project_dir%/classes/Console/Command/*'
resource: '%kernel.project_dir%/src/Console/Command/*'
tags:
- { name: console.command }
2 changes: 1 addition & 1 deletion resources/config/services/domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
autowire: true

OpenCFP\Domain\:
resource: '%kernel.project_dir%/classes/Domain/*'
resource: '%kernel.project_dir%/src/Domain/*'

OpenCFP\Domain\CallForPapers:
arguments:
Expand Down
6 changes: 3 additions & 3 deletions resources/config/services/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ services:
autowire: true

OpenCFP\Infrastructure\Auth\:
resource: '%kernel.project_dir%/classes/Infrastructure/Auth/*'
resource: '%kernel.project_dir%/src/Infrastructure/Auth/*'

OpenCFP\Infrastructure\CacheWarmer\:
resource: '%kernel.project_dir%/classes/Infrastructure/CacheWarmer/*'
resource: '%kernel.project_dir%/src/Infrastructure/CacheWarmer/*'
tags: [kernel.cache_warmer]

OpenCFP\Infrastructure\Crypto\PseudoRandomStringGenerator: ~

OpenCFP\Infrastructure\Event\:
resource: '%kernel.project_dir%/classes/Infrastructure/Event/*'
resource: '%kernel.project_dir%/src/Infrastructure/Event/*'
tags: [kernel.event_subscriber]
bind:
OpenCFP\Domain\Services\RequestValidator: '@OpenCFP\Infrastructure\Auth\CsrfValidator'
Expand Down
4 changes: 2 additions & 2 deletions resources/config/services/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ services:
autowire: true

OpenCFP\Http\Controller\:
resource: '%kernel.project_dir%/classes/Http/Controller/*'
resource: '%kernel.project_dir%/src/Http/Controller/*'
public: true
bind:
$applicationAirport: '%application.airport%'
$applicationArrival: '%application.arrival%'
$applicationDeparture: '%application.departure%'

OpenCFP\Http\Action\:
resource: '%kernel.project_dir%/classes/Http/Action/*'
resource: '%kernel.project_dir%/src/Http/Action/*'
public: true
bind:
$applicationEmail: '%application.email%'
Expand Down
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.
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.
6 changes: 3 additions & 3 deletions tests/Unit/ProjectCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class ProjectCodeTest extends Framework\TestCase
public function productionClassesHaveUnitTests()
{
$this->assertClassesHaveTests(
__DIR__ . '/../../classes',
__DIR__ . '/../../src',
'OpenCFP\\',
'OpenCFP\\Test\\Unit\\',
[
Expand Down Expand Up @@ -111,7 +111,7 @@ public function controllerActionsUseActionSuffix()
*/
private function controllerActions(): array
{
$constructs = Classy\Constructs::fromDirectory(__DIR__ . '/../../classes/Http/Controller');
$constructs = Classy\Constructs::fromDirectory(__DIR__ . '/../../src/Http/Controller');

$actions = [];

Expand Down Expand Up @@ -177,7 +177,7 @@ public function productionClassesAreAbstractOrFinal(string $directory)
public function providerProductionClassesAreAbstractOrFinal(): array
{
$directories = [
'http-actions' => __DIR__ . '/../../classes/Http/Action',
'http-actions' => __DIR__ . '/../../src/Http/Action',
];

return \array_map(function (string $directory) {
Expand Down

0 comments on commit 2e8cc5b

Please sign in to comment.