diff --git a/composer.json b/composer.json index e4a3682..1ec1dee 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "symbiotic/full-single", "description": "Full Symbiotic framework in single file.", "license": "BSD-3-Clause", - "version": "1.2.0", + "version": "1.2.1", "authors": [{ "name": "Surkov Sergey", "role": "creator" @@ -27,7 +27,7 @@ }, "autoload": { "files": [ - "src/symbiotic.php" + "src/autoload.php" ] }, "suggest": { diff --git a/src/autoload.php b/src/autoload.php new file mode 100644 index 0000000..3d0ee84 --- /dev/null +++ b/src/autoload.php @@ -0,0 +1,3 @@ + ['r' => true, 'w+' => true, 'r+' => true, 'x+' => true, 'c+' => true, 'rb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true, 'c+b' => true, 'rt' => true, 'w+t' => true, 'r+t' => true, 'x+t' => true, 'c+t' => true, 'a+' => true], 'write' => ['w' => true, 'w+' => true, 'rw' => true, 'r+' => true, 'x+' => true, 'c+' => true, 'wb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true, 'c+b' => true, 'w+t' => true, 'r+t' => true, 'x+t' => true, 'c+t' => true, 'a' => true, 'a+' => true]]; - private function __construct() - { - } + private function __construct() {} public static function create($body = ''): StreamInterface { @@ -805,7 +723,6 @@ public function getMetadata($key = null) } } } - if (!class_exists(UploadedFile::class)) { class UploadedFile implements UploadedFileInterface { @@ -923,7 +840,6 @@ public function getClientMediaType(): ?string } } } - if (!class_exists(Uri::class)) { class Uri implements UriInterface { @@ -1162,18 +1078,4 @@ private static function rawurlencodeMatchZero(array $match): string } } } - - - - - - - - - - - - - - }