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
Showing
13 changed files
with
213 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ nbproject | |
.vscode/ | ||
vendor/ | ||
composer.lock | ||
build/ | ||
build/ | ||
.phpunit.result.cache |
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 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.
File renamed without changes.
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 @@ | ||
<?php echo $this->fetch('content'); |
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,35 +1,36 @@ | ||
<?php | ||
|
||
namespace EpsBankTransfer\Test\TestApp; | ||
|
||
use Cake\Http\BaseApplication; | ||
use Cake\Routing\Middleware\RoutingMiddleware; | ||
|
||
class Application extends BaseApplication | ||
{ | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function bootstrap() | ||
{ | ||
// Call parent to load bootstrap from files. | ||
parent::bootstrap(); | ||
|
||
$this->addPlugin(\EpsBankTransfer\Plugin::class); | ||
} | ||
|
||
/** | ||
* Setup the middleware queue your application will use. | ||
* | ||
* @param \Cake\Http\MiddlewareQueue $middlewareQueue The middleware queue to setup. | ||
* @return \Cake\Http\MiddlewareQueue The updated middleware queue. | ||
*/ | ||
public function middleware($middlewareQueue) | ||
{ | ||
$middlewareQueue | ||
->add(new RoutingMiddleware($this)); | ||
|
||
return $middlewareQueue; | ||
} | ||
} | ||
<?php | ||
|
||
namespace EpsBankTransfer\Test\TestApp; | ||
|
||
use Cake\Http\BaseApplication; | ||
use Cake\Http\MiddlewareQueue; | ||
use Cake\Routing\Middleware\RoutingMiddleware; | ||
|
||
class Application extends BaseApplication | ||
{ | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function bootstrap(): void | ||
{ | ||
// Call parent to load bootstrap from files. | ||
parent::bootstrap(); | ||
|
||
$this->addPlugin(\EpsBankTransfer\Plugin::class, ['routes' => true]); | ||
} | ||
|
||
/** | ||
* Setup the middleware queue your application will use. | ||
* | ||
* @param MiddlewareQueue $middlewareQueue The middleware queue to setup. | ||
* @return MiddlewareQueue The updated middleware queue. | ||
*/ | ||
public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue | ||
{ | ||
$middlewareQueue | ||
->add(new RoutingMiddleware($this)); | ||
|
||
return $middlewareQueue; | ||
} | ||
} |
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
Oops, something went wrong.