Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits; Chris@14: Chris@14: trait ConfiguratorTrait Chris@14: { Chris@14: /** Chris@14: * Sets a configurator to call after the service is fully initialized. Chris@14: * Chris@14: * @param string|array $configurator A PHP callable reference Chris@14: * Chris@14: * @return $this Chris@14: */ Chris@14: final public function configurator($configurator) Chris@14: { Chris@14: $this->definition->setConfigurator(static::processValue($configurator, true)); Chris@14: Chris@14: return $this; Chris@14: } Chris@14: }