use Symfony\Component\DependencyInjection\Definition; $definition = new Definition('MyService'); $definition->setSynchronized(true);
use Symfony\Component\DependencyInjection\Definition; $definition = new Definition('MyService'); $definition->setSynchronized(false);In this example, we create a new service definition for a class named MyService and set the isSynchronized property to false. This means that any changes we make to this definition will not affect other definitions that use the same configuration. Package library: Symfony\Component\DependencyInjection.