├── composer.json └── src ├── DisableEnsureParentDirectories.php └── Hasdir.php /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nao-pon/flysystem-cached-extra", 3 | "description": "Extra traits for Flysystem cached adapter", 4 | "license": "MIT", 5 | "authors": [ 6 | { 7 | "name": "Naoki Sawada", 8 | "email": "hypweb@gmail.com" 9 | } 10 | ], 11 | "require": { 12 | "league/flysystem-cached-adapter": "~1.0" 13 | }, 14 | "autoload": { 15 | "psr-4": { 16 | "Hypweb\\Flysystem\\Cached\\Extra\\": "src/" 17 | } 18 | }, 19 | "extra": { 20 | "branch-alias": { 21 | "dev-master": "1.0-dev" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/DisableEnsureParentDirectories.php: -------------------------------------------------------------------------------- 1 | $object) { 22 | if (is_array($object)) { 23 | $contents[$path] = array_intersect_key($object, $cachedProperties); 24 | } 25 | } 26 | 27 | return $contents; 28 | } 29 | } 30 | --------------------------------------------------------------------------------