* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; trait FactoryTrait { /** * Sets a factory. * * @param string|array $factory A PHP callable reference * * @return $this */ final public function factory($factory) { if (is_string($factory) && 1 === substr_count($factory, ':')) { $factoryParts = explode(':', $factory); throw new InvalidArgumentException(sprintf('Invalid factory "%s": the `service:method` notation is not available when using PHP-based DI configuration. Use "[ref(\'%s\'), \'%s\']" instead.', $factory, $factoryParts[0], $factoryParts[1])); } $this->definition->setFactory(static::processValue($factory, true)); return $this; } } __halt_compiler();----SIGNATURE:----UUAtYJD1d2YAvwDRrQinPHVZ948jM9c+lnNsRcH1/ohtdlxrLhDQ/e/qC2nPy+47jbQXs50FuPveyjE7a7esHZDKWAK/IGHjLF1sDQG60K3hQ3g7CMfUVum4ZjPS4SD4oFO4k09y/jLfrS8TDGhVUOCOhZYn/Vi1jK1S5ZTjkKtR2zkKzzdnApAGVbwVzQiQleTiaT2TpmL4O/H2gTdbHyFRyjhyvh4R/T9o5bvC3UIimISFZrsklMKqCYK6ORjuUi+4QMGaai+e7vAEffoPxWDTGwxsUqK9sQtx5+jCtdc6ZsAYjoG5N57tWsu03jVSQxHmpL1i4Pqbi+2VnqjZAbmiXBHthQ8p6MzlXU7t4kyEqoZW4ln4nhY/X2G5CmxiYQ1P/1CiYyK1oNpf4tfzRwudtElGF0STSlu2dUyBvdmOyqSFoFNKP4zXtVRlAyF4d7oTTpJjn8ALSH/XVR72btRSH7W/B4g9YNQHH1ednEO6K2wmvv49xG4it3pT8xJbF5ZhwN8TdzK4tFTsZDWDPvdG/573gKeM2uvlFhB2q7X5xjJSx9pnUcICtqwHUMzsvE7HGER0+1EddF24cwHXpUDrVDZ+Ce64MvC+HVIdvqgca7hbR8B799i6rc4E4+Ur8dsOsSrl+QLKoQ6QXhxD5xVZtC2MplabNmJDbKsfOdI=----ATTACHMENT:----NDA1NDc4NDI2NTE3Mzg3NSA0MDI5Nzk0NTE4MjMzODY2IDUwMjA0MTQ0NDU5NTEwOA==