@@ -957,15 +957,13 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
957
957
foreach ($ workflow ['transitions ' ] as $ transition ) {
958
958
if ('workflow ' === $ type ) {
959
959
$ transitionDefinition = new Definition (Workflow \Transition::class, [$ transition ['name ' ], $ transition ['from ' ], $ transition ['to ' ]]);
960
- $ transitionDefinition ->setPublic (false );
961
960
$ transitionId = sprintf ('.%s.transition.%s ' , $ workflowId , $ transitionCounter ++);
962
961
$ container ->setDefinition ($ transitionId , $ transitionDefinition );
963
962
$ transitions [] = new Reference ($ transitionId );
964
963
if (isset ($ transition ['guard ' ])) {
965
964
$ configuration = new Definition (Workflow \EventListener \GuardExpression::class);
966
965
$ configuration ->addArgument (new Reference ($ transitionId ));
967
966
$ configuration ->addArgument ($ transition ['guard ' ]);
968
- $ configuration ->setPublic (false );
969
967
$ eventName = sprintf ('workflow.%s.guard.%s ' , $ name , $ transition ['name ' ]);
970
968
$ guardsConfiguration [$ eventName ][] = $ configuration ;
971
969
}
@@ -979,15 +977,13 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
979
977
foreach ($ transition ['from ' ] as $ from ) {
980
978
foreach ($ transition ['to ' ] as $ to ) {
981
979
$ transitionDefinition = new Definition (Workflow \Transition::class, [$ transition ['name ' ], $ from , $ to ]);
982
- $ transitionDefinition ->setPublic (false );
983
980
$ transitionId = sprintf ('.%s.transition.%s ' , $ workflowId , $ transitionCounter ++);
984
981
$ container ->setDefinition ($ transitionId , $ transitionDefinition );
985
982
$ transitions [] = new Reference ($ transitionId );
986
983
if (isset ($ transition ['guard ' ])) {
987
984
$ configuration = new Definition (Workflow \EventListener \GuardExpression::class);
988
985
$ configuration ->addArgument (new Reference ($ transitionId ));
989
986
$ configuration ->addArgument ($ transition ['guard ' ]);
990
- $ configuration ->setPublic (false );
991
987
$ eventName = sprintf ('workflow.%s.guard.%s ' , $ name , $ transition ['name ' ]);
992
988
$ guardsConfiguration [$ eventName ][] = $ configuration ;
993
989
}
@@ -1010,7 +1006,6 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
1010
1006
1011
1007
// Create a Definition
1012
1008
$ definitionDefinition = new Definition (Workflow \Definition::class);
1013
- $ definitionDefinition ->setPublic (false );
1014
1009
$ definitionDefinition ->addArgument ($ places );
1015
1010
$ definitionDefinition ->addArgument ($ transitions );
1016
1011
$ definitionDefinition ->addArgument ($ initialMarking );
@@ -1063,7 +1058,6 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
1063
1058
if ($ workflow ['supports ' ]) {
1064
1059
foreach ($ workflow ['supports ' ] as $ supportedClassName ) {
1065
1060
$ strategyDefinition = new Definition (Workflow \SupportStrategy \InstanceOfSupportStrategy::class, [$ supportedClassName ]);
1066
- $ strategyDefinition ->setPublic (false );
1067
1061
$ registryDefinition ->addMethodCall ('addWorkflow ' , [new Reference ($ workflowId ), $ strategyDefinition ]);
1068
1062
}
1069
1063
} elseif (isset ($ workflow ['support_strategy ' ])) {
@@ -1170,7 +1164,6 @@ private function registerDebugConfiguration(array $config, ContainerBuilder $con
1170
1164
1171
1165
if ($ debug && class_exists (DebugProcessor::class)) {
1172
1166
$ definition = new Definition (DebugProcessor::class);
1173
- $ definition ->setPublic (false );
1174
1167
$ definition ->addArgument (new Reference ('request_stack ' ));
1175
1168
$ definition ->addTag ('kernel.reset ' , ['method ' => 'reset ' ]);
1176
1169
$ container ->setDefinition ('debug.log_processor ' , $ definition );
@@ -1403,7 +1396,6 @@ private function createPackageDefinition(?string $basePath, array $baseUrls, Ref
1403
1396
1404
1397
$ package = new ChildDefinition ($ baseUrls ? 'assets.url_package ' : 'assets.path_package ' );
1405
1398
$ package
1406
- ->setPublic (false )
1407
1399
->replaceArgument (0 , $ baseUrls ?: $ basePath )
1408
1400
->replaceArgument (1 , $ version )
1409
1401
;
@@ -1947,14 +1939,12 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
1947
1939
AnnotationLoader::class,
1948
1940
[new Reference ('annotation_reader ' , ContainerInterface::NULL_ON_INVALID_REFERENCE )]
1949
1941
);
1950
- $ annotationLoader ->setPublic (false );
1951
1942
1952
1943
$ serializerLoaders [] = $ annotationLoader ;
1953
1944
}
1954
1945
1955
1946
$ fileRecorder = function ($ extension , $ path ) use (&$ serializerLoaders ) {
1956
1947
$ definition = new Definition (\in_array ($ extension , ['yaml ' , 'yml ' ]) ? YamlFileLoader::class : XmlFileLoader::class, [$ path ]);
1957
- $ definition ->setPublic (false );
1958
1948
$ serializerLoaders [] = $ definition ;
1959
1949
};
1960
1950
@@ -2103,7 +2093,6 @@ private function registerSemaphoreConfiguration(array $config, ContainerBuilder
2103
2093
2104
2094
// Generate services for semaphore instances
2105
2095
$ semaphoreDefinition = new Definition (Semaphore::class);
2106
- $ semaphoreDefinition ->setPublic (false );
2107
2096
$ semaphoreDefinition ->setFactory ([new Reference ('semaphore. ' .$ resourceName .'.factory ' ), 'createSemaphore ' ]);
2108
2097
$ semaphoreDefinition ->setArguments ([$ resourceName ]);
2109
2098
@@ -2482,7 +2471,6 @@ private function registerCacheConfiguration(array $config, ContainerBuilder $con
2482
2471
2483
2472
if (method_exists (PropertyAccessor::class, 'createCache ' )) {
2484
2473
$ propertyAccessDefinition = $ container ->register ('cache.property_access ' , AdapterInterface::class);
2485
- $ propertyAccessDefinition ->setPublic (false );
2486
2474
2487
2475
if (!$ container ->getParameter ('kernel.debug ' )) {
2488
2476
$ propertyAccessDefinition ->setFactory ([PropertyAccessor::class, 'createCache ' ]);
0 commit comments