Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Attributes | |
$quoteRepository | |
$couponFactory | |
![]() | |
$_scopeConfig | |
$_checkoutSession | |
$_storeManager | |
$_formKeyValidator | |
$cart | |
![]() | |
$_objectManager | |
$_sessionNamespace | |
$_eventManager | |
$_actionFlag | |
$_redirect | |
$_view | |
$_url | |
$messageManager | |
![]() | |
$_request | |
$_response | |
$resultRedirectFactory | |
$resultFactory | |
Additional Inherited Members | |
![]() | |
const | FLAG_NO_DISPATCH = 'no-dispatch' |
const | FLAG_NO_POST_DISPATCH = 'no-postDispatch' |
const | FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch' |
const | PARAM_NAME_BASE64_URL = 'r64' |
const | PARAM_NAME_URL_ENCODED = 'uenc' |
![]() | |
_goBack ($backUrl=null) | |
getBackUrl ($defaultUrl=null) | |
![]() | |
_forward ($action, $controller=null, $module=null, array $params=null) | |
_redirect ($path, $arguments=[]) | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 13 of file CouponPost.php.
__construct | ( | \Magento\Framework\App\Action\Context | $context, |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
\Magento\Checkout\Model\Session | $checkoutSession, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Framework\Data\Form\FormKey\Validator | $formKeyValidator, | ||
\Magento\Checkout\Model\Cart | $cart, | ||
\Magento\SalesRule\Model\CouponFactory | $couponFactory, | ||
\Magento\Quote\Api\CartRepositoryInterface | $quoteRepository | ||
) |
\Magento\Framework\App\Action\Context | $context | |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
\Magento\Checkout\Model\Session | $checkoutSession | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Framework\Data\Form\FormKey\Validator | $formKeyValidator | |
\Magento\Checkout\Model\Cart | $cart | |
\Magento\SalesRule\Model\CouponFactory | $couponFactory | |
\Magento\Quote\Api\CartRepositoryInterface | $quoteRepository | @codeCoverageIgnore |
Definition at line 40 of file CouponPost.php.
execute | ( | ) |
Initialize coupon
Implements ActionInterface.
Definition at line 69 of file CouponPost.php.
|
protected |
Definition at line 27 of file CouponPost.php.
|
protected |
Definition at line 20 of file CouponPost.php.