/** * Constructor. * * @param \Aelia\WC\Settings settings_controller The controller that will handle * the plugin settings. * @param \Aelia\WC\Messages messages_controller The controller that will handle * the messages produced by the plugin. */ public function __construct($settings_controller = null, $messages_controller = null) { // Load Composer autoloader require_once __DIR__ . '/vendor/autoload.php'; parent::__construct($settings_controller, $messages_controller); $this->initialize_integration(); }
/** * Constructor. * * @param \Aelia\WC\Settings settings_controller The controller that will handle * the plugin settings. * @param \Aelia\WC\Messages messages_controller The controller that will handle * the messages produced by the plugin. */ public function __construct($settings_controller = null, $messages_controller = null) { // Load Composer autoloader require_once __DIR__ . '/vendor/autoload.php'; parent::__construct($settings_controller, $messages_controller); $this->set_hooks(); // The commented line below is needed for Codestyling Localization plugin to // understand what text domain is used by this plugin //load_plugin_textdomain(static::$text_domain, false, $this->path('languages') . '/'); }
/** * Constructor. * * @param \Aelia\WC\Settings settings_controller The controller that will handle * the plugin settings. * @param \Aelia\WC\Messages messages_controller The controller that will handle * the messages produced by the plugin. */ public function __construct($settings_controller, $messages_controller) { // Load Composer autoloader require_once __DIR__ . '/vendor/autoload.php'; parent::__construct($settings_controller, $messages_controller); }