Skip to content

Commit

Permalink
Merge pull request #10 from maurobonfietti/0.11.0
Browse files Browse the repository at this point in the history
Version 0.11.0
  • Loading branch information
maurobonfietti committed Jun 20, 2020
2 parents f505f4d + b69da89 commit 06390e5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Command/CrudGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class CrudGeneratorCommand extends Command
{
const COMMAND_VERSION = '0.10.0';
const COMMAND_VERSION = '0.11.0';

public function __construct($app)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Command/TemplateBase/Objectbase/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

abstract class Base
{
protected Container $container;
protected $container;

protected ObjectbaseService $objectbaseService;
protected $objectbaseService;

public function __construct(Container $container)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/ObjectbaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

namespace App\Exception;

final class ObjectbaseException extends BaseException
final class ObjectbaseException extends \Exception
{
}
9 changes: 8 additions & 1 deletion src/Command/TemplateBase/ObjectbaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@

use App\Exception\ObjectbaseException;

final class ObjectbaseRepository extends BaseRepository
final class ObjectbaseRepository
{
protected $database;

protected function getDb(): \PDO
{
return $this->database;
}

public function __construct(\PDO $database)
{
$this->database = $database;
Expand Down
4 changes: 2 additions & 2 deletions src/Command/TemplateBase/ObjectbaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use App\Exception\ObjectbaseException;
use App\Repository\ObjectbaseRepository;

final class ObjectbaseService extends BaseService
final class ObjectbaseService
{
protected ObjectbaseRepository $objectbaseRepository;
protected $objectbaseRepository;

public function __construct(ObjectbaseRepository $objectbaseRepository)
{
Expand Down

0 comments on commit 06390e5

Please sign in to comment.