/** * Sets the filepath of the metadata file * * @throws \src\extension\exception */ private function set_metadata_file() { $ext_filepath = $this->extension_manager->get_extension_path($this->ext_name); $metadata_filepath = $this->src_root_path . $ext_filepath . 'composer.json'; $this->metadata_file = $metadata_filepath; if (!file_exists($this->metadata_file)) { throw new \src\extension\exception($this->user->lang('FILE_NOT_FOUND', $this->metadata_file)); } }