Lines Matching +full:php +full:- +full:version
1 <?php
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
37 * Trait ModuleCustomTrait - default implementation of ModuleCustomInterface
66 * The version of this module.
76 * A URL that will provide the latest version of this module.
86 * Fetch the latest version of this module.
93 if ($this->customModuleLatestVersionUrl() === '') {
94 return $this->customModuleVersion();
97 …return Registry::cache()->file()->remember($this->name() . '-latest-version', function (): string {
103 $response = $client->get($this->customModuleLatestVersionUrl());
105 if ($response->getStatusCode() === StatusCodeInterface::STATUS_OK) {
106 $version = $response->getBody()->getContents();
108 // Does the response look like a version?
109 if (preg_match('/^\d+\.\d+\.\d+/', $version)) {
110 return $version;
117 return $this->customModuleVersion();
152 $file = $this->resourcesFolder() . $asset;
158 'module' => $this->name(),
175 $asset = Validator::queryParams($request)->string('asset');
185 $file = $this->resourcesFolder() . $asset;
196 'cache-control' => 'public,max-age=31536000',
197 'content-type' => $mime_type,