Skip to content

Commit c8f711f

Browse files
Alexsey-VRAlexsey-VR
authored andcommitted
added PSR-4 class autoload
1 parent d2c5efa commit c8f711f

File tree

10 files changed

+10
-25
lines changed

10 files changed

+10
-25
lines changed

bin/gendiff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
require_once __DIR__ . '/../vendor/autoload.php';
55

6-
use function App\runGendiff;
6+
use function Differ\runGendiff;
77

88
runGendiff();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "MIT",
1212
"autoload": {
1313
"psr-4": {
14-
"App\\": "src/"
14+
"Differ\\": "src/"
1515
},
1616
"files": [
1717
"vendor/docopt/docopt/src/docopt.php",

src/CommandInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace Differ;
44

55
interface CommandInterface
66
{

src/DisplayCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
namespace App;
4-
5-
use App\CommandInterface;
3+
namespace Differ;
64

75
class DisplayCommand implements CommandInterface
86
{

src/FileReader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
namespace App;
4-
5-
use App\FileReaderInterface;
3+
namespace Differ;
64

75
class FileReader implements FileReaderInterface
86
{

src/FileReaderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace Differ;
44

55
interface FileReaderInterface
66
{

src/FilesDiffCommand.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<?php
22

3-
namespace App;
4-
5-
use App\CommandInterface;
6-
use App\FileReaderInterface;
7-
use App\FileReader;
3+
namespace Differ;
84

95
class FilesDiffCommand implements CommandInterface
106
{

src/Gendiff.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<?php
22

3-
namespace App;
4-
5-
use App\OutputInterface;
6-
use App\Output;
7-
use App\FilesDiffCommand;
8-
use App\DisplayCommand;
9-
use App\FileReader;
3+
namespace Differ;
104

115
function runGendiff(): void
126
{

src/Output.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
namespace App;
3+
namespace Differ;
44

5-
use App\OutputInterface;
65
use Docopt;
76

87
class Output implements OutputInterface

src/OutputInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace Differ;
44

55
interface OutputInterface
66
{

0 commit comments

Comments
 (0)