/** * Returns constant defined by given $key if exists or check directly into PrestaShop * \Configuration * @param $key * @return mixed */ public function get($key) { if (defined($key)) { return constant($key); } else { return \Configuration::get($key); } }
/** * Returns a legacy configuration key. * * @param string $key * * @return array An array of functions */ public function getConfiguration($key) { return $this->configuration->get($key); }