SHARE
TWEET

Untitled

a guest Sep 18th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !!!yaml!!!
  2. services:
  3.   CreatorTest:
  4.     public: true
  5.     class: App\Creator\Test\CreatorTest
  6.  
  7.   SenderTest:
  8.     public: true
  9.     class: App\Sender\TestSender
  10.  
  11.   BuilderTest:
  12.     public: true
  13.     class: App\Builder\TestBuilder
  14.  
  15.   Test:
  16.     class: App\Factory\Point\Test\Test
  17.     public: true
  18.     arguments:
  19.       $creator: '@CreatorTest'
  20.       $sender: '@SenderTest'
  21.       $builder: '@BuilderTest'
  22. ------------------------------------
  23. !!!App\Factory\Point\Test\Test!!!
  24.  
  25.     /**@var Creator*/
  26.     private $creator;
  27.     /**@var Sender*/
  28.     private $sender;
  29.     /**@var Builder*/
  30.     private $builder;
  31.  
  32.     public function __construct(
  33.         Creator $creator,
  34.         Sender $sender,
  35.         Builder $builder
  36.     )
  37.     {
  38.         $this->creator = $creator;
  39.         $this->sender = $sender;
  40.         $this->builder = $builder;
  41.     }
  42.  
  43. ------------------------------------
  44. !!!WARNING!!!
  45. Cannot autowire service "App\Factory\Point\Test\Test": argument "$creator" of method "__construct()" references class "App\Creator\Creator" but no such service exists. You should maybe alias this class to the existing "App\Creator\Test\CreatorTest" service.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top