Skip to content

Commit

Permalink
fix: upgrade Plugin base class
Browse files Browse the repository at this point in the history
  • Loading branch information
arodu committed Mar 5, 2024
1 parent 94cae03 commit f283fe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Plugin.php → src/CakeLtePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
/**
* Plugin for CakeLte
*/
class Plugin extends BasePlugin
class CakeLtePlugin extends BasePlugin
{

const LAYOUT_DEFAULT = 'CakeLte.default';
const LAYOUT_LOGIN = 'CakeLte.login';
const LAYOUT_TOP_NAV = 'CakeLte.top-nav';

/**
* Load all the plugin configuration and bootstrap logic.
*
Expand Down
3 changes: 2 additions & 1 deletion src/View/CakeLteView.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
namespace CakeLte\View;

use Cake\View\View;
use CakeLte\CakeLtePlugin;

class CakeLteView extends View
{
use CakeLteTrait;

public string $layout = 'CakeLte.default';
public string $layout = CakeLtePlugin::LAYOUT_DEFAULT;

/**
* @inheritDoc
Expand Down

0 comments on commit f283fe1

Please sign in to comment.