Skip to content

Commit

Permalink
change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yaza-putu committed Oct 30, 2021
1 parent 477dd0e commit 946bc11
Showing 1 changed file with 18 additions and 34 deletions.
52 changes: 18 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,17 @@ use {repositoryInterfaceNamespace}\{repositoryInterface};
class UserService {

/**
* interface name registered in container
* @var string
*/
protected $interfaceName = '{repositoryInterface}';
protected $mainRepository;
* don't change $this->mainRepository variable name
* because used in service class
*/
protected $mainRepository;

public function __construct({repositoryInterface} $mainRepository)
{
$this->initialiseRepository();
$this->mainRepository = $mainRepository;
}

// Define your custom methods :)
public function __construct({repositoryInterface} $mainRepository)
{
$this->mainRepository = $mainRepository;
}

public function __construct({repositoryInterface} $mainRepository)
{
$this->mainRepository = $mainRepository;
}

// Define your custom methods :)
// Define your custom methods :)
}

```
Expand Down Expand Up @@ -237,25 +228,18 @@ use {repositoryInterfaceNamespace}\{repositoryInterface};
class UserService {
use ResultService;

/**
* interface name registered in container
* @var string
*/
protected $interfaceName = '{repositoryInterface}';
protected $mainRepository;
/**
* don't change $this->mainRepository variable name
* because used in service class
*/
protected $mainRepository;

public function __construct({repositoryInterface} $mainRepository)
{
$this->initialiseRepository();
$this->mainRepository = $mainRepository;
}
public function __construct({repositoryInterface} $mainRepository)
{
$this->mainRepository = $mainRepository;
}

// Define your custom methods :)

public function __construct({repositoryInterface} $mainRepository)
{
$this->mainRepository = $mainRepository;
}

public function all () {
try {
Expand Down

0 comments on commit 946bc11

Please sign in to comment.