* * 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:----wduFGuxBAeXHBZaYZj0sV9y0drZQgCRDS5OqHEyal/LWSBtU5NVT5SqqNbO/k5Fg/327MSY0EIVDUmdTv2hBVAMkOHoWtCCKlHKe9sqRVe8YCz+Vzn9t1QDiRpBA49o6P6ixn3lnfgDh2Xre0zxZmm+tDg8pE/xWO7zK7kvuOacQP5HyH6oJG2sswO7KMkpkYOOvdZGBuCWNUfEDW0FOtlveQ3fgh+eRcLHZoLrjztXVwoViKIB6eebwqB/F/pQQkH1NcndoLVOyn5yLaS2IPwrmFFnjxMPeQoFEYWMbsGRUBjU3NU0ayC/oyLdfdsj/fhlNGrJAbRssDlPqmuaU12Je2xOiUEUBiUiu3ypFQGuALJmvf1XU4kBOrG7maAycoMmcDB/zvW/ZLIxJX3oLgiwHkvzR4SRHSjk3+tSnC71ksSUFNT9RnvNd4jqsrxBSi9m5HhWkeUfiiMb7oMTHDnRcIZdkcQaE/33bFbr+TWtv5jkWXStsfDGrPKRvmAPlLzWCT1OfxqQ6EIQ+xjiLcolXsZlDjo/5nyUhEyfChqqpw0BQONvUomWzi/4+X0KIu/lOOg0RGuwEhsH00pCeie2tVhDUd7U0NQPbwiJNcnRq07q7wjvjgSlY2mh4vypSyQkNVpHp2/c6lD5fNQPOi6IVV4Qwt4saNPZ/XBSVMks=----ATTACHMENT:----ODIwMjUyMzcwOTEzMzc5OSA4NTM1MDcwNjM2NzQzNjgwIDM2MzE5NjIwNDg2MzkwNDI=