Jump to content

AncientMariner

Clients
  • Posts

    102
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    AncientMariner reacted to Daniel F in Integrate Bugsnag with Invision   
    Yea, IPS\Dispatcher\Standard seems like a good spot!
    If you care about literally anything and if you want to log "everything" , you could even hook into IPS\Dispatcher! 
    I'm doing something similar with rollbar:
     
    //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } abstract class rollbar_hook_dispatcher_standard extends _HOOK_CLASS_ { public function init() { $this->initRollbar(); parent::init(); } protected function initRollbar() { if ( \IPS\Settings::i()->rollbarapikey ) { require_once \IPS\Application::getRootPath('rollbar') . '/sources/vendor/autoload.php'; $config = array( 'access_token' => \IPS\Settings::i()->rollbarapikey, 'environment' => \IPS\Settings::i()->base_url, 'root' => \IPS\ROOT_PATH ); \Rollbar\Rollbar::init($config); } } }  
  2. Like
    AncientMariner reacted to Daniel F in Integrating IPS with Rollbar or other error monitoring   
    Here's literally all the code you need to add rollbar support to IPS
    😉
  3. Like
    AncientMariner got a reaction from PurplePixel in Create PHP composer bundle of IPB   
    I'd just like to raise this thread from the dead and add a +1. Modern PHP apps use Composer. We extend IPB a bunch and it's hacky atm. Having IPB be accessible via composer would make updating IPB much easier too. It's totally fine if the packages were behind a client login, very used to this on other projects.
  4. Like
    AncientMariner got a reaction from 13. in Create PHP composer bundle of IPB   
    I'd just like to raise this thread from the dead and add a +1. Modern PHP apps use Composer. We extend IPB a bunch and it's hacky atm. Having IPB be accessible via composer would make updating IPB much easier too. It's totally fine if the packages were behind a client login, very used to this on other projects.
×
×
  • Create New...