File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 92
92
use Symfony \Component \Validator \Validator \ValidatorInterface ;
93
93
use Symfony \Component \Webhook \Client \RequestParser ;
94
94
use Symfony \Component \Webhook \Controller \WebhookController ;
95
+ use Symfony \Component \Workflow \DependencyInjection \WorkflowValidatorPass ;
95
96
use Symfony \Component \Workflow \Exception \InvalidDefinitionException ;
96
97
use Symfony \Component \Workflow \Metadata \InMemoryMetadataStore ;
97
98
use Symfony \Component \Workflow \WorkflowEvents ;
@@ -291,7 +292,7 @@ public function testWorkflows()
291
292
DefinitionValidator::$ called = false ;
292
293
293
294
$ container = $ this ->createContainerFromFile ('workflows ' , compile: false );
294
- $ container ->addCompilerPass (new \ Symfony \ Component \ Workflow \ DependencyInjection \ WorkflowValidatorPass ());
295
+ $ container ->addCompilerPass (new WorkflowValidatorPass ());
295
296
$ container ->compile ();
296
297
297
298
$ this ->assertTrue ($ container ->hasDefinition ('workflow.article ' ), 'Workflow is registered as a service ' );
@@ -410,7 +411,7 @@ public function testWorkflowAreValidated()
410
411
$ this ->expectException (InvalidDefinitionException::class);
411
412
$ this ->expectExceptionMessage ('A transition from a place/state must have an unique name. Multiple transitions named "go" from place/state "first" were found on StateMachine "my_workflow". ' );
412
413
$ container = $ this ->createContainerFromFile ('workflow_not_valid ' , compile: false );
413
- $ container ->addCompilerPass (new \ Symfony \ Component \ Workflow \ DependencyInjection \ WorkflowValidatorPass ());
414
+ $ container ->addCompilerPass (new WorkflowValidatorPass ());
414
415
$ container ->compile ();
415
416
}
416
417
Original file line number Diff line number Diff line change 20
20
use Symfony \Component \RateLimiter \CompoundRateLimiterFactory ;
21
21
use Symfony \Component \RateLimiter \RateLimiterFactoryInterface ;
22
22
use Symfony \Component \Validator \Constraints \Email ;
23
+ use Symfony \Component \Workflow \Definition ;
24
+ use Symfony \Component \Workflow \DependencyInjection \WorkflowValidatorPass ;
23
25
use Symfony \Component \Workflow \Exception \InvalidDefinitionException ;
26
+ use Symfony \Component \Workflow \Validator \DefinitionValidatorInterface ;
24
27
25
28
class PhpFrameworkExtensionTest extends FrameworkExtensionTestCase
26
29
{
@@ -128,7 +131,7 @@ public function testWorkflowValidationStateMachine()
128
131
],
129
132
],
130
133
]);
131
- $ container ->addCompilerPass (new \ Symfony \ Component \ Workflow \ DependencyInjection \ WorkflowValidatorPass ());
134
+ $ container ->addCompilerPass (new WorkflowValidatorPass ());
132
135
});
133
136
}
134
137
@@ -456,13 +459,13 @@ public static function emailValidationModeProvider()
456
459
}
457
460
}
458
461
459
- class WorkflowValidatorWithConstructor implements \ Symfony \ Component \ Workflow \ Validator \ DefinitionValidatorInterface
462
+ class WorkflowValidatorWithConstructor implements DefinitionValidatorInterface
460
463
{
461
464
public function __construct (bool $ enabled )
462
465
{
463
466
}
464
467
465
- public function validate (\ Symfony \ Component \ Workflow \ Definition $ definition , string $ name ): void
468
+ public function validate (Definition $ definition , string $ name ): void
466
469
{
467
470
}
468
471
}
You can’t perform that action at this time.
0 commit comments