Skip to content

Commit

Permalink
Rename hook base classes
Browse files Browse the repository at this point in the history
Adding suffix "Hook" to every base class. This simplifies development
because you don't need to alias bases classes in your concrete
hook classes

refs #6928
  • Loading branch information
mxhash committed Aug 26, 2014
1 parent 3a85a45 commit 376e9aa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -14,7 +14,7 @@
* @author Icinga-Web Team <info@icinga.org>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
*/
class Grapher
class GrapherHook
{
/**
* Whether this grapher provides preview images
Expand Down
Expand Up @@ -14,7 +14,7 @@
* @author Icinga-Web Team <info@icinga.org>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
*/
abstract class Ticket
abstract class TicketHook
{
/**
* Constructor must live without arguments right now
Expand Down
Expand Up @@ -10,7 +10,7 @@
/**
* Hook to extend topbar items
*/
interface TopBar
abstract class TopBarHook
{
/**
* Function to generate top bar content
Expand All @@ -20,5 +20,5 @@ interface TopBar
*
* @return string
*/
public function getHtml($request, $view);
abstract public function getHtml($request, $view);
}
Expand Up @@ -9,7 +9,7 @@
/**
* Base class for TimeLine providers
*/
abstract class TimelineProvider
abstract class TimelineProviderHook
{
/**
* Return the names by which to group entries
Expand Down
4 changes: 2 additions & 2 deletions modules/monitoring/library/Monitoring/Web/Hook/TopBar.php
Expand Up @@ -4,15 +4,15 @@

namespace Icinga\Module\Monitoring\Web\Hook;

use Icinga\Web\Hook\TopBar as IcingaTopBar;
use Icinga\Web\Hook\TopBarHook;
use Icinga\Module\Monitoring\DataView\StatusSummary as StatusSummaryView;
use Icinga\Web\Request;
use Zend_View;

/**
* Render status summary into the topbar of icinga
*/
class TopBar implements IcingaTopBar
class TopBar extends TopBarHook
{
/**
* Function to generate top bar content
Expand Down

0 comments on commit 376e9aa

Please sign in to comment.