-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28b3f10
commit e859317
Showing
13 changed files
with
77 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace ZfcTicketSystem\Controller; | ||
|
||
use Zend\Authentication\AuthenticationService; | ||
use Zend\Mvc\Controller\AbstractActionController; | ||
use ZfcTicketSystem\Service\TicketSystem; | ||
|
||
class AbstractController extends AbstractActionController | ||
{ | ||
/** @var TicketSystem */ | ||
protected $ticketService; | ||
/** @var AuthenticationService */ | ||
protected $authService; | ||
|
||
/** | ||
* AbstractController constructor. | ||
* @param TicketSystem $ticketService | ||
* @param AuthenticationService $authService | ||
*/ | ||
public function __construct(TicketSystem $ticketService, AuthenticationService $authService) | ||
{ | ||
$this->ticketService = $ticketService; | ||
$this->authService = $authService; | ||
} | ||
|
||
/** | ||
* @return TicketSystem | ||
*/ | ||
protected function getTicketService() | ||
{ | ||
return $this->ticketService; | ||
} | ||
|
||
/** | ||
* @return AuthenticationService | ||
*/ | ||
protected function getAuthService() | ||
{ | ||
return $this->authService; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
<?php | ||
|
||
include __DIR__ . '/../vendor/autoload.php'; | ||
|
||
use ZfcTicketSystemTest\Util\ServiceManagerFactory; | ||
|
||
ini_set('error_reporting', E_ALL); | ||
|
||
if (file_exists(__DIR__ . '/TestConfig.php')) { | ||
$config = require __DIR__ . '/TestConfig.php'; | ||
} else { | ||
throw new \Exception('text config missing'); | ||
} | ||
|
||
ServiceManagerFactory::setConfig($config); | ||
unset($config); | ||
|
||
include __DIR__ . '/../vendor/autoload.php'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.