Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Astound from the namespace #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/vendor
/composer.lock
/.idea
/.vscode
.env
.env.backup
13 changes: 5 additions & 8 deletions Api/AffirmCheckoutManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
<?php
/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Api;
namespace Affirm\Api;

/**
* Interface OrderServiceManagerInterface
*
* @package Astound\Affirm\Api
* @package Affirm\Api
* @api
*/
interface AffirmCheckoutManagerInterface
Expand Down
13 changes: 5 additions & 8 deletions Api/CheckoutPaymentManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
<?php
/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Api;
namespace Affirm\Api;

/**
* Interface CheckoutPaymentManagerInterface
*
* @package Astound\Affirm\Api
* @package Affirm\Api
* @api
*/
interface CheckoutPaymentManagerInterface
Expand Down
13 changes: 5 additions & 8 deletions Api/GiftWrapManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
<?php
/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Api;
namespace Affirm\Api;

/**
* Interface GiftWrapManagerInterface
*
* @package Astound\Affirm\Api
* @package Affirm\Api
*/
interface GiftWrapManagerInterface
{
Expand Down
13 changes: 5 additions & 8 deletions Api/InlineCheckoutInterface.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
<?php

/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Api;
namespace Affirm\Api;

/**
* Interface OrderServiceManagerInterface
*
* @package Astound\Affirm\Api
* @package Affirm\Api
* @api
*/
interface InlineCheckoutInterface
Expand Down
13 changes: 5 additions & 8 deletions Block/Adminhtml/Error.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
<?php
/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Block\Adminhtml;
namespace Affirm\Block\Adminhtml;

use Magento\Framework\View\Element\Template;

/**
* Class Block Error
*
* @package Astound\Affirm\Block\Adminhtml
* @package Affirm\Block\Adminhtml
*/
class Error extends Template
{
Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Rule.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Astound\Affirm\Block\Adminhtml;
namespace Affirm\Block\Adminhtml;

class Rule extends \Magento\Backend\Block\Widget\Grid\Container
{
Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Edit.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule;
namespace Affirm\Block\Adminhtml\Rule;

class Edit extends \Magento\Backend\Block\Widget\Form\Container
{
Expand All @@ -18,7 +18,7 @@ protected function _construct()
{
$this->_objectId = 'id';
$this->_controller = 'adminhtml_rule';
$this->_blockGroup = 'Astound_Affirm';
$this->_blockGroup = 'Affirm';

parent::_construct();

Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Rule/Edit/Form.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Edit;
namespace Affirm\Block\Adminhtml\Rule\Edit;

class Form extends \Magento\Backend\Block\Widget\Form\Generic
{
Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Edit/Tab/Conditions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Edit\Tab;
namespace Affirm\Block\Adminhtml\Rule\Edit\Tab;
use Magento\Backend\Block\Widget\Form\Generic;
use Magento\Backend\Block\Widget\Tab\TabInterface;

Expand Down Expand Up @@ -45,7 +45,7 @@ protected function _prepareForm()
{
$model = $this->_coreRegistry->registry('affirm_payment_restriction_rule');
$om = \Magento\Framework\App\ObjectManager::getInstance();
$hlp = $om->get('Astound\Affirm\Helper\Data');
$hlp = $om->get('Affirm\Helper\Data');

$form = $this->_formFactory->create();

Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Edit/Tab/General.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Astound\Affirm\Block\Adminhtml\Rule\Edit\Tab;
namespace Affirm\Block\Adminhtml\Rule\Edit\Tab;

use Magento\Backend\Block\Widget\Form\Generic;
use Magento\Backend\Block\Widget\Tab\TabInterface;
Expand Down Expand Up @@ -45,7 +45,7 @@ protected function _prepareForm()
{
$model = $this->_coreRegistry->registry('affirm_payment_restriction_rule');
$om = \Magento\Framework\App\ObjectManager::getInstance();
$hlp = $om->get('Astound\Affirm\Helper\Data');
$hlp = $om->get('Affirm\Helper\Data');

$form = $this->_formFactory->create();
$form->setHtmlIdPrefix('rule_');
Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Rule/Edit/Tabs.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Edit;
namespace Affirm\Block\Adminhtml\Rule\Edit;

class Tabs extends \Magento\Backend\Block\Widget\Tabs
{
Expand Down
2 changes: 1 addition & 1 deletion Block/Adminhtml/Rule/Grid/Renderer/Color.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Astound\Affirm\Block\Adminhtml\Rule\Grid\Renderer;
namespace Affirm\Block\Adminhtml\Rule\Grid\Renderer;

class Color extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Input
{
Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Grid/Renderer/Groups.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Grid\Renderer;
namespace Affirm\Block\Adminhtml\Rule\Grid\Renderer;
class Groups extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Input
{
public function render(\Magento\Framework\DataObject $row)
{
$om = \Magento\Framework\App\ObjectManager::getInstance();
$hlp = $om->get('Astound\Affirm\Helper\Data');
$hlp = $om->get('Affirm\Helper\Data');
$groups = $row->getData('cust_groups');
if (!$groups) {
return __('Restricts For All');
Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Grid/Renderer/Methods.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Grid\Renderer;
namespace Affirm\Block\Adminhtml\Rule\Grid\Renderer;

class Methods extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Input
{
public function render(\Magento\Framework\DataObject $row)
{
$om = \Magento\Framework\App\ObjectManager::getInstance();
$hlp = $om->get('Astound\Affirm\Helper\Data');
$hlp = $om->get('Affirm\Helper\Data');

$v = $row->getData('methods');
if (!$v) {
Expand Down
4 changes: 2 additions & 2 deletions Block/Adminhtml/Rule/Grid/Renderer/Stores.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Astound\Affirm\Block\Adminhtml\Rule\Grid\Renderer;
namespace Affirm\Block\Adminhtml\Rule\Grid\Renderer;
class Stores extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Text
{
public function render(\Magento\Framework\DataObject $row)
{
$om = \Magento\Framework\App\ObjectManager::getInstance();
$hlp = $om->get('Astound\Affirm\Helper\Data');
$hlp = $om->get('Affirm\Helper\Data');
$sys = $om->get('Magento\Store\Model\System\Store');
$stores = $row->getData('stores');
if (!$stores) {
Expand Down
15 changes: 6 additions & 9 deletions Block/Info.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
<?php
/**
* Astound
* Affirm
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category Affirm
* @package Astound_Affirm
* @copyright Copyright (c) 2016 Astound, Inc. (http://www.astoundcommerce.com)
* @package Affirm
* @copyright Copyright (c) 2021 Affirm. All rights reserved.
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

namespace Astound\Affirm\Block;
namespace Affirm\Block;

use Magento\Framework\Phrase;
use Magento\Payment\Block\ConfigurableInfo;

/**
* Payment Block Info class
*
* @package Astound\Affirm\Block
* @package Affirm\Block
*/
class Info extends ConfigurableInfo
{
Expand All @@ -33,7 +30,7 @@ class Info extends ConfigurableInfo
*
* @var string
*/
protected $_template = 'Astound_Affirm::payment/info/edit.phtml';
protected $_template = 'Affirm::payment/info/edit.phtml';

/**
* Retrieve translated label
Expand Down
Loading