Start.php 786 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Shipping\Controller\Adminhtml\Order\Shipment;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Start extends \Magento\Backend\App\Action implements HttpGetActionInterface
  10. {
  11. /**
  12. * Authorization level of a basic admin session
  13. *
  14. * @see _isAllowed()
  15. */
  16. const ADMIN_RESOURCE = 'Magento_Sales::shipment';
  17. /**
  18. * Start create shipment action
  19. *
  20. * @return void
  21. */
  22. public function execute()
  23. {
  24. /**
  25. * Clear old values for shipment qty's
  26. */
  27. $this->_redirect('*/*/new', ['order_id' => $this->getRequest()->getParam('order_id')]);
  28. }
  29. }