Skip to content

Commit

Permalink
Merge pull request #68 from magento-api/develop
Browse files Browse the repository at this point in the history
[API] Sprint 41
  • Loading branch information
Alexander Paliarush committed Jan 29, 2015
2 parents 1afbe7e + 3d51e85 commit 413a60a
Show file tree
Hide file tree
Showing 1,227 changed files with 4,138 additions and 3,767 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
protected $_countBySeverity = [];

/**
* @param \Magento\Core\Model\EntityFactory $entityFactory
* @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
* @param \Magento\Framework\Event\ManagerInterface $eventManager
Expand All @@ -31,7 +31,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
* @param \Magento\Framework\Model\Resource\Db\AbstractDb $resource
*/
public function __construct(
\Magento\Core\Model\EntityFactory $entityFactory,
\Magento\Framework\Data\Collection\EntityFactory $entityFactory,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
\Magento\Framework\Event\ManagerInterface $eventManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Baseurl implements \Magento\Framework\Notification\MessageInterface
protected $_config;

/**
* @var \Magento\Store\Model\StoreManagerInterface
* @var \Magento\Framework\Store\StoreManagerInterface
*/
protected $_storeManager;

Expand All @@ -32,13 +32,13 @@ class Baseurl implements \Magento\Framework\Notification\MessageInterface

/**
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\UrlInterface $urlBuilder
* @param \Magento\Framework\App\Config\ValueFactory $configValueFactory
*/
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $config,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\UrlInterface $urlBuilder,
\Magento\Framework\App\Config\ValueFactory $configValueFactory
) {
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/App/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Router extends \Magento\Core\App\Router\Base
* @param \Magento\Framework\App\ResponseFactory $responseFactory
* @param \Magento\Framework\App\Route\ConfigInterface $routeConfig
* @param \Magento\Framework\UrlInterface $url
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo
* @param string $routerId
Expand All @@ -70,7 +70,7 @@ public function __construct(
\Magento\Framework\App\ResponseFactory $responseFactory,
\Magento\Framework\App\Route\ConfigInterface $routeConfig,
\Magento\Framework\UrlInterface $url,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo,
$routerId,
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function _prepareLayout()

$this->addChild('sales', 'Magento\Backend\Block\Dashboard\Sales');

if ($this->_scopeConfig->getValue(self::XML_PATH_ENABLE_CHARTS, \Magento\Store\Model\ScopeInterface::SCOPE_STORE)) {
if ($this->_scopeConfig->getValue(self::XML_PATH_ENABLE_CHARTS, \Magento\Framework\Store\ScopeInterface::SCOPE_STORE)) {
$block = $this->getLayout()->createBlock('Magento\Backend\Block\Dashboard\Diagrams');
} else {
$block = $this->getLayout()->createBlock(
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Dashboard/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function getChartUrl($directUrl = true)

$timezoneLocal = $this->_scopeConfig->getValue(
$this->_localeDate->getDefaultTimezonePath(),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
);

list($dateStart, $dateEnd) = $this->_collectionFactory->create()->getDateRange(
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Page/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ public function getLogoutLink()
*/
public function displayNoscriptNotice()
{
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Framework\Store\ScopeInterface::SCOPE_STORE);
}
}
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Page/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Notices extends \Magento\Backend\Block\Template
*/
public function displayNoscriptNotice()
{
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
return $this->_scopeConfig->getValue('web/browser_capabilities/javascript', \Magento\Framework\Store\ScopeInterface::SCOPE_STORE);
}

/**
Expand All @@ -32,6 +32,6 @@ public function displayNoscriptNotice()
*/
public function displayDemoNotice()
{
return $this->_scopeConfig->getValue('design/head/demonotice', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
return $this->_scopeConfig->getValue('design/head/demonotice', \Magento\Framework\Store\ScopeInterface::SCOPE_STORE);
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Block/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function isOutputEnabled($moduleName = null)

return !$this->_scopeConfig->isSetFlag(
'advanced/modules_disable_output/' . $moduleName,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
);
}

Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Backend/Block/Template/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Context extends \Magento\Framework\View\Element\Template\Context
* @param \Magento\Framework\View\FileSystem $viewFileSystem
* @param \Magento\Framework\View\TemplateEnginePool $enginePool
* @param \Magento\Framework\App\State $appState
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\View\Page\Config $pageConfig
* @param \Magento\Framework\AuthorizationInterface $authorization
* @param \Magento\Backend\Model\Session $backendSession
Expand Down Expand Up @@ -99,7 +99,7 @@ public function __construct(
\Magento\Framework\View\FileSystem $viewFileSystem,
\Magento\Framework\View\TemplateEnginePool $enginePool,
\Magento\Framework\App\State $appState,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\View\Page\Config $pageConfig,
\Magento\Framework\AuthorizationInterface $authorization,
\Magento\Backend\Model\Session $backendSession,
Expand Down Expand Up @@ -143,7 +143,7 @@ public function __construct(
/**
* Get store manager
*
* @return \Magento\Store\Model\StoreManagerInterface
* @return \Magento\Framework\Store\StoreManagerInterface
*/
public function getStoreManager()
{
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Widget/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Context extends \Magento\Backend\Block\Template\Context
* @param \Magento\Framework\View\FileSystem $viewFileSystem
* @param \Magento\Framework\View\TemplateEnginePool $enginePool
* @param \Magento\Framework\App\State $appState
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\AuthorizationInterface $authorization
* @param \Magento\Backend\Model\Session $backendSession
* @param \Magento\Framework\Math\Random $mathRandom
Expand Down Expand Up @@ -84,7 +84,7 @@ public function __construct(
\Magento\Framework\View\FileSystem $viewFileSystem,
\Magento\Framework\View\TemplateEnginePool $enginePool,
\Magento\Framework\App\State $appState,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\View\Page\Config $pageConfig,
\Magento\Framework\AuthorizationInterface $authorization,
\Magento\Backend\Model\Session $backendSession,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected function _convertDate($date, $locale)
$dateObj->setTimezone(
$this->_scopeConfig->getValue(
$this->_localeDate->getDefaultTimezonePath(),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getValue($index = null)
$datetimeTo->setTimezone(
$this->_scopeConfig->getValue(
$this->_localeDate->getDefaultTimezonePath(),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
)
);
$datetimeTo->addDay(1)->subSecond(1);
Expand All @@ -70,7 +70,7 @@ protected function _convertDate($date, $locale)
$dateObj->setTimezone(
$this->_scopeConfig->getValue(
$this->_localeDate->getDefaultTimezonePath(),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Currency extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Abstra
/**
* Application object
*
* @var \Magento\Store\Model\StoreManagerInterface
* @var \Magento\Framework\Store\StoreManagerInterface
*/
protected $_storeManager;

Expand All @@ -51,15 +51,15 @@ class Currency extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Abstra

/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Directory\Model\Currency\DefaultLocator $currencyLocator
* @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
* @param \Magento\Framework\Locale\CurrencyInterface $localeCurrency
* @param array $data
*/
public function __construct(
\Magento\Backend\Block\Context $context,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Directory\Model\Currency\DefaultLocator $currencyLocator,
\Magento\Directory\Model\CurrencyFactory $currencyFactory,
\Magento\Framework\Locale\CurrencyInterface $localeCurrency,
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Helper/Dashboard/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Data extends \Magento\Core\Helper\Data
/**
* @param \Magento\Framework\App\Helper\Context $context
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\App\State $appState
* @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
* @param DeploymentConfig $deploymentConfig
Expand All @@ -39,7 +39,7 @@ class Data extends \Magento\Core\Helper\Data
public function __construct(
\Magento\Framework\App\Helper\Context $context,
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\App\State $appState,
\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency,
DeploymentConfig $deploymentConfig,
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Helper/Dashboard/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
/**
* @param \Magento\Framework\App\Helper\Context $context
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param \Magento\Framework\App\State $appState
* @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
* @param \Magento\Reports\Model\Resource\Order\Collection $orderCollection
Expand All @@ -27,7 +27,7 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
public function __construct(
\Magento\Framework\App\Helper\Context $context,
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
\Magento\Framework\App\State $appState,
\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency,
\Magento\Reports\Model\Resource\Order\Collection $orderCollection,
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Backend/Model/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Auth
protected $_coreConfig;

/**
* @var \Magento\Core\Model\Factory
* @var \Magento\Framework\Data\Collection\ModelFactory
*/
protected $_modelFactory;

Expand All @@ -50,15 +50,15 @@ class Auth
* @param \Magento\Backend\Model\Auth\StorageInterface $authStorage
* @param \Magento\Backend\Model\Auth\Credential\StorageInterface $credentialStorage
* @param \Magento\Framework\App\Config\ScopeConfigInterface $coreConfig
* @param \Magento\Core\Model\Factory $modelFactory
* @param \Magento\Framework\Data\Collection\ModelFactory $modelFactory
*/
public function __construct(
\Magento\Framework\Event\ManagerInterface $eventManager,
\Magento\Backend\Helper\Data $backendData,
\Magento\Backend\Model\Auth\StorageInterface $authStorage,
\Magento\Backend\Model\Auth\Credential\StorageInterface $credentialStorage,
\Magento\Framework\App\Config\ScopeConfigInterface $coreConfig,
\Magento\Core\Model\Factory $modelFactory
\Magento\Framework\Data\Collection\ModelFactory $modelFactory
) {
$this->_eventManager = $eventManager;
$this->_backendData = $backendData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class Collection extends \Magento\Framework\Data\Collection
protected $_cacheTypeList;

/**
* @param \Magento\Core\Model\EntityFactory $entityFactory
* @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
* @param \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList
*/
public function __construct(
\Magento\Core\Model\EntityFactory $entityFactory,
\Magento\Framework\Data\Collection\EntityFactory $entityFactory,
\Magento\Framework\App\Cache\TypeListInterface $cacheTypeList
) {
$this->_cacheTypeList = $cacheTypeList;
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Backend/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Config extends \Magento\Framework\Object
protected $_configValueFactory;

/**
* @var \Magento\Store\Model\StoreManagerInterface
* @var \Magento\Framework\Store\StoreManagerInterface
*/
protected $_storeManager;

Expand All @@ -82,7 +82,7 @@ class Config extends \Magento\Framework\Object
* @param \Magento\Framework\DB\TransactionFactory $transactionFactory
* @param \Magento\Backend\Model\Config\Loader $configLoader
* @param \Magento\Framework\App\Config\ValueFactory $configValueFactory
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Framework\Store\StoreManagerInterface $storeManager
* @param array $data
*/
public function __construct(
Expand All @@ -92,7 +92,7 @@ public function __construct(
\Magento\Framework\DB\TransactionFactory $transactionFactory,
\Magento\Backend\Model\Config\Loader $configLoader,
\Magento\Framework\App\Config\ValueFactory $configValueFactory,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Framework\Store\StoreManagerInterface $storeManager,
array $data = []
) {
parent::__construct($data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Observer
protected $_response;

/**
* @var \Magento\Store\Model\StoreManagerInterface
* @var \Magento\Framework\Store\StoreManagerInterface
*/
protected $_storeManager;

Expand All @@ -48,7 +48,7 @@ public function __construct(
\Magento\Framework\Registry $coreRegistry,
\Magento\Backend\Model\Auth\Session $authSession,
\Magento\Framework\App\ResponseInterface $response,
\Magento\Store\Model\StoreManagerInterface $storeManager
\Magento\Framework\Store\StoreManagerInterface $storeManager
) {
$this->_backendData = $backendData;
$this->_coreRegistry = $coreRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function _getInstalledCurrencies()
',',
$this->_scopeConfig->getValue(
'system/currency/installed',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Model/Config/Backend/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function afterSave()
$scopeName = __('Default scope');
break;

case \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE:
case \Magento\Framework\Store\ScopeInterface::SCOPE_WEBSITE:
/** @var $website \Magento\Store\Model\Website */
$website = $this->_websiteFactory->create();
$websiteName = $website->load($data->getScopeId())->getName();
$scopeName = __('website(%1) scope', $websiteName);
break;

case \Magento\Store\Model\ScopeInterface::SCOPE_STORE:
case \Magento\Framework\Store\ScopeInterface::SCOPE_STORE:
/** @var $store \Magento\Store\Model\Store */
$store = $this->_storeFactory->create();
$storeName = $store->load($data->getScopeId())->getName();
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Backend/Model/Config/Backend/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function afterSave()
$this->_mutableConfig->setValue(
\Magento\Store\Model\Store::XML_PATH_STORE_IN_URL,
$this->getValue(),
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
);
$this->_cacheManager->clean();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function afterSave()
$types = array_keys(
$this->_scopeConfig->getValue(
self::XML_PATH_INVALID_CACHES,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Framework\Store\ScopeInterface::SCOPE_STORE
)
);
if ($this->isValueChanged()) {
Expand Down
Loading

0 comments on commit 413a60a

Please sign in to comment.