"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Lock/Store/StoreFactory.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

StoreFactory.php  (symfony-4.4.14):StoreFactory.php  (symfony-4.4.15)
skipping to change at line 69 skipping to change at line 69
throw new InvalidArgumentException(sprintf('Unsupported Connecti on: "%s".', \get_class($connection))); throw new InvalidArgumentException(sprintf('Unsupported Connecti on: "%s".', \get_class($connection)));
case 'flock' === $connection: case 'flock' === $connection:
return new FlockStore(); return new FlockStore();
case 0 === strpos($connection, 'flock://'): case 0 === strpos($connection, 'flock://'):
return new FlockStore(substr($connection, 8)); return new FlockStore(substr($connection, 8));
case 'semaphore' === $connection: case 'semaphore' === $connection:
return new SemaphoreStore(); return new SemaphoreStore();
case 0 === strpos($connection, 'redis://'): case 0 === strpos($connection, 'redis:'):
case 0 === strpos($connection, 'rediss://'): case 0 === strpos($connection, 'rediss:'):
case 0 === strpos($connection, 'memcached://'): case 0 === strpos($connection, 'memcached:'):
if (!class_exists(AbstractAdapter::class)) { if (!class_exists(AbstractAdapter::class)) {
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection)); throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection));
} }
$storeClass = 0 === strpos($connection, 'memcached://') ? Memcac hedStore::class : RedisStore::class; $storeClass = 0 === strpos($connection, 'memcached:') ? Memcache dStore::class : RedisStore::class;
$connection = AbstractAdapter::createConnection($connection, ['l azy' => true]); $connection = AbstractAdapter::createConnection($connection, ['l azy' => true]);
return new $storeClass($connection); return new $storeClass($connection);
case 0 === strpos($connection, 'mssql://'): case 0 === strpos($connection, 'mssql://'):
case 0 === strpos($connection, 'mysql:'): case 0 === strpos($connection, 'mysql:'):
case 0 === strpos($connection, 'mysql2://'): case 0 === strpos($connection, 'mysql2://'):
case 0 === strpos($connection, 'oci:'): case 0 === strpos($connection, 'oci:'):
case 0 === strpos($connection, 'oci8://'): case 0 === strpos($connection, 'oci8://'):
case 0 === strpos($connection, 'pdo_oci://'): case 0 === strpos($connection, 'pdo_oci://'):
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)