resolvers = $resolvers; } /** * @return null|Center|Center[] */ public function resolveCenter($entity, ?array $options = []) { trigger_deprecation( 'ChillMainBundle', 'dev-master', ' Use the service CenterResolverManager through the interface CenterResolverManagerInterface. The new method "CenterResolverManagerInterface::resolveCenters(): array" is available and the typing has been improved in order to avoid mixing types. ' ); foreach($this->resolvers as $resolver) { if ($resolver->supports($entity, $options)) { return $resolver->resolveCenter($entity, $options); } } return null; } }