/** * Returns a single registration hook by ID * * @param string $id ID of the target registration hook * @return \Ponticlaro\Bebop\ScriptsLoader\Patterns\ScriptsHook */ public function getHook($id) { if (!is_string($id)) { return null; } return $this->hooks->get($id); }
/** * Executes any function that exists for the current environment * */ protected function __applyEnvModifications() { // Get current environment $current_env = EnvManager::getInstance()->getCurrentKey(); // Execute current environment function if ($this->env_configs->hasKey($current_env)) { call_user_func_array($this->env_configs->get($current_env), array($this)); } }