Skip to content

Commit 3b18cd4

Browse files
authored
Merge pull request #89 from pfwd/88-type-dir
Refactoring Controllers, Entities, Forms and Repostiories by removing Type directories Close #88
2 parents 5be266d + bb0b855 commit 3b18cd4

Some content is hidden

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

47 files changed

+78
-93
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
!.gitkeep
33
.env
44
/vendor/
5+
notes.php

app/config/routing.php

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

3-
use App\Controller\Type;
3+
use App\Controller;
44

55
return [
66
[
77
'pattern' => '/',
8-
'controller' => Type\Home::class,
8+
'controller' => Controller\Home::class,
99
'method' => ['GET'],
1010
'action' => 'index'
1111
],
1212
[
1313
'pattern' => '/invoice',
14-
'controller' => Type\Invoice::class,
14+
'controller' => Controller\Invoice::class,
1515
'method' => ['GET'],
1616
'action' => 'dashboard'
1717
],
1818
[
1919
'pattern' => '/invoice/{id}',
20-
'controller' => Type\Invoice::class,
20+
'controller' => Controller\Invoice::class,
2121
'method' => ['GET'],
2222
'action' => 'index',
2323
'parameters' => [
@@ -26,7 +26,7 @@
2626
],
2727
[
2828
'pattern' => '/invoice/{id}/edit',
29-
'controller' => Type\Invoice::class,
29+
'controller' => Controller\Invoice::class,
3030
'method' => ['GET'],
3131
'action' => 'edit',
3232
'parameters' => [
File renamed without changes.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
namespace App\Controller\Type;
2+
namespace App\Controller;
33

4-
use App\Controller\AbstractController;
54
use App\Helper\HTTP\Request\Request;
65
use App\Helper\HTTP\Response\View;
76

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
namespace App\Controller\Type;
2+
namespace App\Controller;
33

4-
use App\Controller\AbstractController;
54
use App\Helper\HTTP\Request\Request;
65
use App\Helper\HTTP\Response\View;
76

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
namespace App\Entity\Type;
2+
namespace App\Entity;
33

4-
use App\Entity\AbstractEntity;
54

65
class Customer extends AbstractEntity implements GenericEntityInterface
76
{

src/Entity/Type/GenericEntityInterface.php renamed to src/Entity/GenericEntityInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace App\Entity\Type;
2+
namespace App\Entity;
33

44
use DateTime;
55

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
2-
namespace App\Entity\Type;
3-
4-
use App\Entity\AbstractEntity;
2+
namespace App\Entity;
53

64
class Invoice extends AbstractEntity implements GenericEntityInterface
75
{
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
2-
namespace App\Entity\Type;
2+
namespace App\Entity;
33

4-
use App\Entity\AbstractEntity;
54

65
class InvoiceItem extends AbstractEntity implements GenericEntityInterface
76
{
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
2-
namespace App\Entity\Type;
3-
4-
use App\Entity\AbstractEntity;
2+
namespace App\Entity;
53

64
class Status extends AbstractEntity implements GenericEntityInterface
75
{

0 commit comments

Comments
 (0)