title: Create Line Item with custom type Shopware 6
body: <p>I would to create a Line Item with custom type. I already created a handler for custom type and registered it in services. This is a code what I have:</p>
  <p>`</p>
  <pre class="lang-php prettyprint-override"><code>$lineItem = $this-&gt;lineItemFactoryRegistry-&gt;create([
      'type' =&gt; 'example',
      'id' =&gt; $id,
      'quantity' =&gt; 1
  ], $context);
  $lineItem-&gt;setLabel('myLabel');
  $lineItem-&gt;setRemovable(true);
  $lineItem-&gt;setGood(false);
  </code></pre>
  <p>`</p>
  <p>The $id variable is a random uuid.</p>
  <p>In controller I try to add the line item like this:</p>
  <p>`</p>
  <pre class="lang-php prettyprint-override"><code>$this-&gt;cartService-&gt;add($cart, $lineItem, $context)
  </code></pre>
  <p>`
  but after run this code I don't see my Line Item in the cart. I need to create and add the line item in controller because I want to create line item after link on my custom &lt;a href=#&quot;&gt; link.</p>
  <p>Do You have any idea where can be a problem?</p>
  <p>I tried to add custom handler and registered it in services and I also tried to add line item via API (/store-api/checkout/cart/line-item)</p>