mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
EventService: call FireEvent with only one parameter (PSR14)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with iTop. If not, see <http://www.gnu.org/licenses/>
|
||||
use Combodo\iTop\Service\EventData;
|
||||
use Combodo\iTop\Service\EventName;
|
||||
use Combodo\iTop\Service\EventService;
|
||||
|
||||
@@ -52,7 +53,7 @@ class CLIPage implements Page
|
||||
{
|
||||
$aData['debug_info'] = 'from: '.get_class($this).":[$this->s_title]";
|
||||
$aData['object'] = $this;
|
||||
EventService::FireEvent(EventName::AFTER_DISPLAY_PAGE, get_class($this), $aData);
|
||||
EventService::FireEvent(new EventData(EventName::AFTER_DISPLAY_PAGE, get_class($this), $aData));
|
||||
}
|
||||
|
||||
public function add($sText)
|
||||
|
||||
Reference in New Issue
Block a user