-
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.
Merge pull request #5 from umer936/master
Upgrades (CakePHP 3 --> 4, BS 3 --> 5, remove deprecated functions)
- Loading branch information
Showing
35 changed files
with
571 additions
and
798 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 |
---|---|---|
@@ -1,25 +1,8 @@ | ||
# CakePHP 3 | ||
|
||
/vendor/* | ||
/config/app.php | ||
|
||
/tmp/cache/models/* | ||
!/tmp/cache/models/empty | ||
/tmp/cache/persistent/* | ||
!/tmp/cache/persistent/empty | ||
/tmp/cache/views/* | ||
!/tmp/cache/views/empty | ||
/tmp/sessions/* | ||
!/tmp/sessions/empty | ||
/tmp/tests/* | ||
!/tmp/tests/empty | ||
|
||
/logs/* | ||
!/logs/empty | ||
|
||
# CakePHP 2 | ||
|
||
/app/tmp/* | ||
/app/Config/core.php | ||
/app/Config/database.php | ||
/vendors/* | ||
/composer.lock | ||
/composer.phar | ||
/phpunit.xml | ||
/.phpunit.result.cache | ||
/phpunit.phar | ||
/config/Migrations/schema-dump-default.lock | ||
/vendor/ | ||
/.idea/ |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<?php | ||
namespace Installer\Controller; | ||
declare(strict_types=1); | ||
|
||
namespace CakePHPAppInstaller\Controller; | ||
|
||
use App\Controller\AppController as BaseController; | ||
use Cake\Event\Event; | ||
use Cake\Event\EventInterface; | ||
|
||
class AppController extends BaseController | ||
{ | ||
/** | ||
* @param \Cake\Event\Event $event The beforeRender event. | ||
* @return \Cake\Http\Response|null|void | ||
*/ | ||
public function beforeRender(Event $event) | ||
public function beforeRender(EventInterface $event) | ||
{ | ||
try { | ||
return parent::beforeRender($event); | ||
} finally { | ||
$this->viewBuilder()->setTheme(null); | ||
} | ||
try { | ||
return parent::beforeRender($event); | ||
} finally { | ||
$this->viewBuilder()->setTheme(null); | ||
} | ||
} | ||
} |
Oops, something went wrong.