Skip to content
Snippets Groups Projects
Commit fb0d597b authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3172425 by mikelutz, catch: "Symfony\Component\Lock\Factory" is...

Issue #3172425 by mikelutz, catch: "Symfony\Component\Lock\Factory" is deprecated since Symfony 4.4 and will be removed in 5.0 use "Symfony\Component\Lock\LockFactory" instead

(cherry picked from commit e3045727)
parent 54dbe469
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
use Symfony\Component\BrowserKit\Client as SymfonyClient;
use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Lock\Factory;
use Symfony\Component\Lock\LockFactory;
use Symfony\Component\Lock\Store\FlockStore;
use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process;
......@@ -465,7 +465,7 @@ protected function stopServer() {
*/
protected function findAvailablePort() {
$store = new FlockStore(DrupalFilesystem::getOsTemporaryDirectory());
$lock_factory = new Factory($store);
$lock_factory = new LockFactory($store);
$counter = 100;
while ($counter--) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment