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
<?php | |
/* | |
* Allow development users to switch between databases | |
* ...add to \App\Application::middleware | |
* */ | |
$middlewareQueue->add(function (ServerRequest $request, Response $response, $next) { | |
$isPreviouslyAliased = false; |
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
<?php | |
namespace App\Shell; | |
use Cake\Console\Shell; | |
/** | |
* UpdateCounterCaches shell command. | |
*/ | |
class UpdateCounterCachesShell extends Shell |
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
<?php | |
namespace App\Model\Table\Traits; | |
use Cake\ORM\Query; | |
trait UpdateCounterCacheTrait | |
{ |