File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
src/Symfony/Bundle/FrameworkBundle
Tests/DependencyInjection Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ jobs:
136
136
php_server
137
137
}
138
138
139
+ root * /symfony/src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/
140
+
139
141
steps :
140
142
- name : Checkout
141
143
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 531
531
532
532
<xsd : complexType name =" lock" >
533
533
<xsd : sequence >
534
- <xsd : element name =" resource" type =" lock_resource" minOccurs =" 1 " maxOccurs =" unbounded" />
534
+ <xsd : element name =" resource" type =" lock_resource" minOccurs =" 0 " maxOccurs =" unbounded" />
535
535
</xsd : sequence >
536
536
<xsd : attribute name =" enabled" type =" xsd:boolean" />
537
537
</xsd : complexType >
Original file line number Diff line number Diff line change 8
8
<framework : config http-method-override =" false" handle-all-throwables =" true" >
9
9
<framework : annotations enabled =" false" />
10
10
<framework : php-errors log =" true" />
11
- <framework : lock >
12
- <framework : resource >semaphore</framework : resource >
13
- </framework : lock >
11
+ <framework : lock />
14
12
</framework : config >
15
13
</container >
Original file line number Diff line number Diff line change 56
56
use Symfony \Component \HttpFoundation \IpUtils ;
57
57
ACD5
use Symfony \Component \HttpKernel \DependencyInjection \LoggerPass ;
58
58
use Symfony \Component \HttpKernel \Fragment \FragmentUriGeneratorInterface ;
59
+ use Symfony \Component \Lock \Store \SemaphoreStore ;
59
60
use Symfony \Component \Messenger \Bridge \AmazonSqs \Transport \AmazonSqsTransportFactory ;
60
61
use Symfony \Component \Messenger \Bridge \Amqp \Transport \AmqpTransportFactory ;
61
62
use Symfony \Component \Messenger \Bridge \Beanstalkd \Transport \BeanstalkdTransportFactory ;
@@ -2392,7 +2393,12 @@ public function testDefaultLock()
2392
2393
2393
2394
self ::assertTrue ($ container ->hasDefinition ('lock.default.factory ' ));
2394
2395
$ storeDef = $ container ->getDefinition ($ container ->getDefinition ('lock.default.factory ' )->getArgument (0 ));
2395
- self ::assertEquals (new Reference ('semaphore ' ), $ storeDef ->getArgument (0 ));
2396
+
2397
+ if (class_exists (SemaphoreStore::class) && SemaphoreStore::isSupported ()) {
2398
+ self ::assertEquals (new Reference ('semaphore ' ), $ storeDef ->getArgument (0 ));
2399
+ } else {
2400
+ self ::assertEquals (new Reference ('flock ' ), $ storeDef ->getArgument (0 ));
2401
+ }
2396
2402
}
2397
2403
2398
2404
public function testNamedLocks ()
You can’t perform that action at this time.
0 commit comments