Skip to content

Commit

Permalink
Added semver compatibility tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Jan 7, 2024
1 parent 1437a43 commit 70dceff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
},
"scripts": {
"phpcs": "vendor/bin/phpcs lib/ --report=summary",
"phpcbf": "vendor/bin/phpcbf lib/ --report=summary",
"phpmd": "vendor/bin/phpmd lib/ ansi phpmd.xml",
"phpstan": "vendor/bin/phpstan analyse lib/ -l 6 -c phpstan.neon",
"quality": ["@phpcs", "@phpmd", "@phpstan"],
Expand Down
7 changes: 6 additions & 1 deletion lib/ExtensionRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace Phpfastcache;

use Phpfastcache\Extensions\Drivers\Couchbasev4\Driver;
use Phpfastcache\Extensions\Drivers\Couchbasev4\{Config, Driver, Item};

// Semver Compatibility until v10
class_alias(Config::class, Drivers\Couchbasev4\Config::class);
class_alias(Driver::class, Drivers\Couchbasev4\Driver::class);
class_alias(Item::class, Drivers\Couchbasev4\Item::class);

ExtensionManager::registerExtension('Couchbasev4', Driver::class);

0 comments on commit 70dceff

Please sign in to comment.