Skip to content

Commit

Permalink
:feature:
Browse files Browse the repository at this point in the history
- Some concepts changes
- Some paths changes
- Console commands organization
  • Loading branch information
gabrielpcruz committed Feb 12, 2024
1 parent 8b4ef96 commit ab17b1b
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Business/Rice/RiceBusiness.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace App\Business\Rice;

use App\Entity\Entity;
use App\Repository\Example\RiceRespository;
use App\Slim\Business\Business;
use Illuminate\Database\Eloquent\Collection;
use Psr\Http\Message\ServerRequestInterface as Request;
use src\Slim\Entity\Entity;

class RiceBusiness extends Business
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Example/RiceEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Entity\Example;

use App\Entity\Entity;
use App\Slim\Entity\Entity;

class RiceEntity extends Entity
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/AccessTokenEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace App\Entity\User;

use App\Entity\Entity;
use DateTime;
use DateTimeImmutable;
use Illuminate\Database\Eloquent\Relations\HasOne;
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
use League\OAuth2\Server\Entities\Traits\AccessTokenTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
use App\Slim\Entity\Entity;

class AccessTokenEntity extends Entity implements AccessTokenEntityInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/AuthCodeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

namespace App\Entity\User;

use App\Entity\Entity;
use League\OAuth2\Server\Entities\AuthCodeEntityInterface;
use League\OAuth2\Server\Entities\Traits\AuthCodeTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\TokenEntityTrait;
use App\Slim\Entity\Entity;

class AuthCodeEntity extends Entity implements AuthCodeEntityInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/ClientEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

namespace App\Entity\User;

use App\Entity\Entity;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use App\Slim\Entity\Entity;

class ClientEntity extends Entity implements ClientEntityInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/ProfileEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace App\Entity\User;

use App\Entity\Entity;
use App\Slim\Entity\Entity;

class ProfileEntity extends Entity
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/RefreshTokenEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

namespace App\Entity\User;

use App\Entity\Entity;
use DateTime;
use DateTimeImmutable;
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\RefreshTokenTrait;
use App\Slim\Entity\Entity;

class RefreshTokenEntity extends Entity implements RefreshTokenEntityInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/ScopeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

namespace App\Entity\User;

use App\Entity\Entity;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\ScopeTrait;
use App\Slim\Entity\Entity;

class ScopeEntity extends Entity implements ScopeEntityInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/User/UserEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Entity\User;

use App\Entity\Entity;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use League\OAuth2\Server\Entities\UserEntityInterface;
use App\Slim\Entity\Entity;

class UserEntity extends Entity implements UserEntityInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Slim/Business/Business.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
namespace App\Slim\Business;

use App\App;
use App\Entity\Entity;
use App\Slim\Repository\Repository;
use App\Slim\Repository\RepositoryManager;
use DI\DependencyException;
use DI\NotFoundException;
use DomainException;
Expand All @@ -13,8 +14,7 @@
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ServerRequestInterface as Request;
use ReflectionException;
use App\Slim\Repository\Repository;
use App\Slim\Repository\RepositoryManager;
use src\Slim\Entity\Entity;

/**
*
Expand Down
2 changes: 0 additions & 2 deletions src/Slim/Console/Business/NewBusiness.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ private function templateEntity($entityName, $namespace): string
namespace $namespace;
use App\Entity\Entity;
class {$entityName}Entity extends Entity
{
protected DOLAR_table = "$tableEntity";
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Entity.php → src/Slim/Entity/Entity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Entity;
namespace App\Slim\Entity;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion src/Slim/Repository/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Slim\Repository;

use App\Entity\Entity;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use src\Slim\Entity\Entity;

/**
* Original source @see https://github.com/jerfeson/slim4-skeleton/blob/feature/3.0.0/app/Repository/Repository.php
Expand Down

0 comments on commit ab17b1b

Please sign in to comment.