Skip to content

Commit

Permalink
Merge branches '2.3-develop' and 'graphQl-44-product-textarea-field-f…
Browse files Browse the repository at this point in the history
…ormat' of https://github.com/magento/graphql-ce into graphQl-44-product-textarea-field-format

Signed-off-by: vitaliyboyko <v.boyko@atwix.com>

Conflicts:
	app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductTextareaAttribute.php
  • Loading branch information
vitaliyboyko committed Sep 22, 2018
2 parents cde04fc + 8fd89cf commit c95cac9
Show file tree
Hide file tree
Showing 553 changed files with 6,726 additions and 1,791 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\AdminNotification\Controller\Adminhtml\Notification;

class Index extends \Magento\AdminNotification\Controller\Adminhtml\Notification
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class Index extends \Magento\AdminNotification\Controller\Adminhtml\Notification implements HttpGetActionInterface
{
/**
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
*/
namespace Magento\AdvancedPricingImportExport\Controller\Adminhtml\Export;

use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\ImportExport\Controller\Adminhtml\Export as ExportController;
use Magento\Framework\Controller\ResultFactory;
use Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing as ExportAdvancedPricing;
use Magento\Catalog\Model\Product as CatalogProduct;

class GetFilter extends ExportController
class GetFilter extends ExportController implements HttpGetActionInterface, HttpPostActionInterface
{
/**
* Get grid-filter of entity attributes action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
*/
namespace Magento\Analytics\Controller\Adminhtml\BIEssentials;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Framework\App\Config\ScopeConfigInterface;

/**
* Provides link to BI Essentials signup
*/
class SignUp extends Action
class SignUp extends Action implements HttpGetActionInterface
{
/**
* Path to config value with URL to BI Essentials sign-up page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
namespace Magento\Analytics\Controller\Adminhtml\Reports;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Analytics\Model\Exception\State\SubscriptionUpdateException;
use Magento\Analytics\Model\ReportUrlProvider;
use Magento\Backend\App\Action;
Expand All @@ -16,7 +17,7 @@
/**
* Provide redirect to resource with reports.
*/
class Show extends Action
class Show extends Action implements HttpGetActionInterface
{
/**
* @var ReportUrlProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Magento\Authorizenet\Controller\Directpost\Payment;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Authorizenet\Controller\Directpost\Payment;
use Magento\Authorizenet\Helper\DataFactory;
use Magento\Checkout\Model\Type\Onepage;
Expand All @@ -25,7 +26,7 @@
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Place extends Payment
class Place extends Payment implements HttpPostActionInterface
{
/**
* @var \Magento\Quote\Api\CartManagementInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Widget/Form/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function _construct()
'class' => 'delete',
'onclick' => 'deleteConfirm(\'' . __(
'Are you sure you want to do this?'
) . '\', \'' . $this->getDeleteUrl() . '\')'
) . '\', \'' . $this->getDeleteUrl() . '\', {data: {}})'
]
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Auth;

class DeniedJson extends \Magento\Backend\Controller\Adminhtml\Auth
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class DeniedJson extends \Magento\Backend\Controller\Adminhtml\Auth implements HttpGetActionInterface
{
/**
* @var \Magento\Framework\Controller\Result\JsonFactory
Expand Down
5 changes: 4 additions & 1 deletion app/code/Magento/Backend/Controller/Adminhtml/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Auth;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGet;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPost;

/**
* @api
* @since 100.0.2
*/
class Login extends \Magento\Backend\Controller\Adminhtml\Auth
class Login extends \Magento\Backend\Controller\Adminhtml\Auth implements HttpGet, HttpPost
{
/**
* @var \Magento\Framework\View\Result\PageFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Auth;

class Logout extends \Magento\Backend\Controller\Adminhtml\Auth
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGet;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPost;

class Logout extends \Magento\Backend\Controller\Adminhtml\Auth implements HttpGet, HttpPost
{
/**
* Administrator logout action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Controller\ResultFactory;

class CleanImages extends \Magento\Backend\Controller\Adminhtml\Cache
class CleanImages extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Controller\ResultFactory;

class CleanMedia extends \Magento\Backend\Controller\Adminhtml\Cache
class CleanMedia extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\Controller\ResultFactory;

class CleanStaticFiles extends \Magento\Backend\Controller\Adminhtml\Cache
class CleanStaticFiles extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

class FlushAll extends \Magento\Backend\Controller\Adminhtml\Cache
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class FlushAll extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

class FlushSystem extends \Magento\Backend\Controller\Adminhtml\Cache
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class FlushSystem extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Authorization level of a basic admin session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Cache;

class Index extends \Magento\Backend\Controller\Adminhtml\Cache
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class Index extends \Magento\Backend\Controller\Adminhtml\Cache implements HttpGetActionInterface
{
/**
* Display cache management grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Dashboard;

class Index extends \Magento\Backend\Controller\Adminhtml\Dashboard
use Magento\Backend\Controller\Adminhtml\Dashboard as DashboardAction;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;

class Index extends DashboardAction implements HttpGetActionInterface, HttpPostActionInterface
{
/**
* @var \Magento\Framework\View\Result\PageFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Index;

use Magento\Backend\Controller\Adminhtml\Index as IndexAction;
use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;

/**
* @api
* @since 100.0.2
*/
class GlobalSearch extends \Magento\Backend\Controller\Adminhtml\Index
class GlobalSearch extends IndexAction implements HttpGetActionInterface, HttpPostActionInterface
{
/**
* @var \Magento\Framework\Controller\Result\JsonFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Index;

class Index extends \Magento\Backend\Controller\Adminhtml\Index
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGet;
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPost;

class Index extends \Magento\Backend\Controller\Adminhtml\Index implements HttpGet, HttpPost
{
/**
* Admin area entry point
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\Noroute;

/**
* @SuppressWarnings(PHPMD.AllPurposeAction)
*/
class Index extends \Magento\Backend\App\Action
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Account;

class Index extends \Magento\Backend\Controller\Adminhtml\System\Account
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class Index extends \Magento\Backend\Controller\Adminhtml\System\Account implements HttpGetActionInterface
{
/**
* @var \Magento\Framework\View\Result\PageFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Design;

class Index extends \Magento\Backend\Controller\Adminhtml\System\Design
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class Index extends \Magento\Backend\Controller\Adminhtml\System\Design implements HttpGetActionInterface
{
/**
* @return \Magento\Backend\Model\View\Result\Page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

class DeleteWebsite extends \Magento\Backend\Controller\Adminhtml\System\Store
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class DeleteWebsite extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpGetActionInterface
{
/**
* @return \Magento\Framework\Controller\ResultInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;

class DeleteWebsitePost extends \Magento\Backend\Controller\Adminhtml\System\Store
class DeleteWebsitePost extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpPostActionInterface
{
/**
* @return \Magento\Backend\Model\View\Result\Redirect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

class EditStore extends \Magento\Backend\Controller\Adminhtml\System\Store
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class EditStore extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpGetActionInterface
{
/**
* @return \Magento\Framework\Controller\ResultInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

class EditWebsite extends \Magento\Backend\Controller\Adminhtml\System\Store
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class EditWebsite extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpGetActionInterface
{
/**
* @return \Magento\Backend\Model\View\Result\Forward
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\Controller\ResultFactory;

/**
* Class Index returns Stores page
*/
class Index extends \Magento\Backend\Controller\Adminhtml\System\Store
class Index extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpGetActionInterface
{
/**
* Returns Stores page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;

/**
* Class Save
*
* Save controller for system entities such as: Store, StoreGroup, Website
*/
class Save extends \Magento\Backend\Controller\Adminhtml\System\Store
class Save extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpPostActionInterface
{
/**
* Process Website model save
Expand Down
3 changes: 1 addition & 2 deletions app/code/Magento/Backend/etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
<preference for="Magento\Framework\App\DefaultPathInterface" type="Magento\Backend\App\DefaultPath" />
<preference for="Magento\Backend\App\ConfigInterface" type="Magento\Backend\App\Config" />
<preference for="Magento\Framework\App\Response\Http\FileFactory" type="Magento\Backend\App\Response\Http\FileFactory" />
<preference for="Magento\Framework\App\Request\ValidatorInterface"
type="Magento\Backend\App\Request\BackendValidator" />
<type name="Magento\Framework\Stdlib\DateTime\Timezone">
<arguments>
<argument name="scopeType" xsi:type="const">Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT</argument>
Expand Down Expand Up @@ -169,4 +167,5 @@
<argument name="defaultClass" xsi:type="string">Magento\Backend\Block\Template</argument>
</arguments>
</type>
<preference for="CsrfRequestValidator" type="Magento\Backend\App\Request\BackendValidator" />
</config>
4 changes: 3 additions & 1 deletion app/code/Magento/Backup/Controller/Adminhtml/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace Magento\Backup\Controller\Adminhtml\Index;

class Index extends \Magento\Backup\Controller\Adminhtml\Index
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;

class Index extends \Magento\Backup\Controller\Adminhtml\Index implements HttpGetActionInterface
{
/**
* Backup list action
Expand Down
4 changes: 4 additions & 0 deletions app/code/Magento/Braintree/Model/Ui/PayPal/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function __construct(Config $config, ResolverInterface $resolver)
*/
public function getConfig()
{
$requireBillingAddressAll = \Magento\Paypal\Model\Config::REQUIRE_BILLING_ADDRESS_ALL;

return [
'payment' => [
self::PAYPAL_CODE => [
Expand All @@ -60,6 +62,8 @@ public function getConfig()
'vaultCode' => self::PAYPAL_VAULT_CODE,
'skipOrderReview' => $this->config->isSkipOrderReview(),
'paymentIcon' => $this->config->getPayPalIcon(),
'isRequiredBillingAddress' =>
(int)$this->config->isRequiredBillingAddress() === $requireBillingAddressAll
]
]
];
Expand Down
Loading

0 comments on commit c95cac9

Please sign in to comment.