Skip to content

Commit

Permalink
minor #16289 Add missing ShipmentShipType to AdminBundle (TheMilek)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.12 or 1.13 branches
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
continuation of #16276

Commits
-------
  Add missing ShipmentShipType to AdminBundle
  • Loading branch information
NoResponseMate committed May 22, 2024
2 parents 0946863 + d7988ec commit 4ad6f0f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Sylius/Bundle/AdminBundle/Form/Type/ShipmentShipType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Sylius Sp. z o.o.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Sylius\Bundle\AdminBundle\Form\Type;

use Sylius\Bundle\ShippingBundle\Form\Type\ShipmentShipType as BaseShipmentShipType;
use Symfony\Component\Form\AbstractType;

final class ShipmentShipType extends AbstractType
{
public function getBlockPrefix(): string
{
return 'sylius_admin_shipment_ship';
}

public function getParent(): string
{
return BaseShipmentShipType::class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@
<tag name="form.type" />
</service>

<service id="sylius_admin.form.type.shipment_ship" class="Sylius\Bundle\AdminBundle\Form\Type\ShipmentShipType" >
<tag name="form.type" />
</service>

<service id="sylius_admin.form.type.tax_category" class="Sylius\Bundle\AdminBundle\Form\Type\TaxCategoryType" >
<tag name="form.type" />
</service>
Expand Down

0 comments on commit 4ad6f0f

Please sign in to comment.