Skip to content

Commit

Permalink
removing unused code from view error event
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Feb 29, 2024
1 parent dc52f9a commit b370616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/Mvc/View/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

class Error extends Injectable
{
public function beforeRenderView(Event $event, ViewInterface $view, $currentView = null)
{
}

public function notFoundView(Event $event, ViewInterface $view, $currentView = null)
{
}
// public function beforeRenderView(Event $event, ViewInterface $view, $currentView = null): void
// {
// }
//
// public function notFoundView(Event $event, ViewInterface $view, $currentView = null): void
// {
// }
}
4 changes: 2 additions & 2 deletions src/Provider/View/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Phalcon\Di\DiInterface;
use Phalcon\Events\Manager;
use Zemit\Mvc\View;
use Zemit\Mvc\View\Error as ViewError;
use Zemit\Mvc\View\Error;
use Zemit\Config\ConfigInterface;
use Zemit\Provider\AbstractServiceProvider;

Expand All @@ -34,7 +34,7 @@ public function register(DiInterface $di): void

$options ??= $config->pathToArray('view', []);

$error = new ViewError();
$error = new Error();
$error->setDI($di);

$eventsManager->attach('view', $error);
Expand Down

0 comments on commit b370616

Please sign in to comment.