Skip to content

Commit

Permalink
2.0.0.0-dev68
Browse files Browse the repository at this point in the history
* Cache:
  * Implemented depersonalization of private content generation
  * Implemented content invalidation
  * Added Edge Side Includes (ESI) support
  * Added a built-in caching application
* GitHub requests:
  * [#454](#454) -- Allow to specify list of IPs in a body on maintenance.flag which will be granted access even if the flag is on
  * [#204](#204) -- Mage_ImportExport: Exporting configurable products ignores multiple configurable options
  * [#418](#418) -- Echo vs print
  * [#419](#419) -- Some translation keys are not correct.
  * [#244](#244) -- Retrieve base host URL without path in error processor
  * [#411](#411) -- Missed column 'payment_method' of table 'sales_flat_quote_address'
  * [#284](#284) -- Fix for Issue #278 (Import -> Stores with large amount of Configurable Products)
* Fixed bugs:
  * Fixed an issue where Mage_Eav_Model_Entity_Type::fetchNewIncrementId() did not rollback on exception
  * Fixed an issue where a category containing more than 1000 products could not be saved
  * Fixed inappropriate error messages displayed during installation when required extensions were not installed
  * Fixed synopsis of the install.php script
  * Fixed an issue where the schedule of recurring payments was not displayed in the shopping cart
* Modularity improvements:
  * Introduced the OfflinePayments module - a saparate module for offline payment methods
  * Added the ability to enable/disable the Paypal module
  * Moved the framework part of the Locale functionality from the Core module to library
  * The Locale logic was split among appropriate classes in library, according to their responsibilities
  * Removed the deprecated DHL functionality
  * Introduced the OfflineShipping module for offline shipping carrier functionality: Flatrate, Tablerate, Freeshipping, Pickup
  * Introduced a separate module for the DHL shipping carrier
  * Introduced a separate module for the Fedex shipping carrier
  * Introduced a separate module for the UPS shipping carrier
  * Introduced a separate module for the USPS shipping carrier
* Framework Improvements:
  * Added the ability to intercept internal public calls
  * Added the ability to access public interface of the intercepted object
  * Added a static integrity test for plugin interface validation
  * Added support for both class addressing approaches in DI: with and without slash ("\") at the beginning of a class name
* Customer Service usage:
  * Refactored the Customer module blocks and controllers to use customer service layer
* Security:
  * Introduced the ability to hash a password with a random salt of default length (32 chars) by the encryption library
  * Utilized a random salt of default length for admin users, and frontend customers
  • Loading branch information
magento-team committed Mar 7, 2014
1 parent b1cebfa commit c6856aa
Show file tree
Hide file tree
Showing 1,385 changed files with 32,592 additions and 19,235 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
2.0.0.0-dev68
=============
* Cache:
* Implemented depersonalization of private content generation
* Implemented content invalidation
* Added Edge Side Includes (ESI) support
* Added a built-in caching application
* GitHub requests:
* [#454](https://github.com/magento/magento2/pull/454) -- Allow to specify list of IPs in a body on maintenance.flag which will be granted access even if the flag is on
* [#204](https://github.com/magento/magento2/issues/204) -- Mage_ImportExport: Exporting configurable products ignores multiple configurable options
* [#418](https://github.com/magento/magento2/issues/418) -- Echo vs print
* [#419](https://github.com/magento/magento2/issues/419) -- Some translation keys are not correct.
* [#244](https://github.com/magento/magento2/issues/244) -- Retrieve base host URL without path in error processor
* [#411](https://github.com/magento/magento2/issues/411) -- Missed column 'payment_method' of table 'sales_flat_quote_address'
* [#284](https://github.com/magento/magento2/pull/284) -- Fix for Issue #278 (Import -> Stores with large amount of Configurable Products)
* Fixed bugs:
* Fixed an issue where Mage_Eav_Model_Entity_Type::fetchNewIncrementId() did not rollback on exception
* Fixed an issue where a category containing more than 1000 products could not be saved
* Fixed inappropriate error messages displayed during installation when required extensions were not installed
* Fixed synopsis of the install.php script
* Fixed an issue where the schedule of recurring payments was not displayed in the shopping cart
* Modularity improvements:
* Introduced the OfflinePayments module - a saparate module for offline payment methods
* Added the ability to enable/disable the Paypal module
* Moved the framework part of the Locale functionality from the Core module to library
* The Locale logic was split among appropriate classes in library, according to their responsibilities
* Removed the deprecated DHL functionality
* Introduced the OfflineShipping module for offline shipping carrier functionality: Flatrate, Tablerate, Freeshipping, Pickup
* Introduced a separate module for the DHL shipping carrier
* Introduced a separate module for the Fedex shipping carrier
* Introduced a separate module for the UPS shipping carrier
* Introduced a separate module for the USPS shipping carrier
* Framework Improvements:
* Added the ability to intercept internal public calls
* Added the ability to access public interface of the intercepted object
* Added a static integrity test for plugin interface validation
* Added support for both class addressing approaches in DI: with and without slash ("\") at the beginning of a class name
* Customer Service usage:
* Refactored the Customer module blocks and controllers to use customer service layer
* Security:
* Introduced the ability to hash a password with a random salt of default length (32 chars) by the encryption library
* Utilized a random salt of default length for admin users, and frontend customers

2.0.0.0-dev67
=============
* GitHub requests:
Expand Down
15 changes: 9 additions & 6 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,19 @@

if (!defined('BARE_BOOTSTRAP')) {
if (file_exists(BP . '/maintenance.flag')) {
if (PHP_SAPI == 'cli') {
echo 'Service temporarily unavailable due to maintenance downtime.';
} else {
include_once BP . '/pub/errors/503.php';

if (!in_array($_SERVER['REMOTE_ADDR'], explode(",", file_get_contents(BP . '/maintenance.flag')))) {
if (PHP_SAPI == 'cli') {
echo 'Service temporarily unavailable due to maintenance downtime.';
} else {
include_once BP . '/pub/errors/503.php';
}
exit;
}
exit;
}

if (!empty($_SERVER['MAGE_PROFILER'])) {
\Magento\Profiler::applyConfig($_SERVER['MAGE_PROFILER'], dirname(__DIR__), !empty($_REQUEST['isAjax']));
}
}
date_default_timezone_set(\Magento\Core\Model\LocaleInterface::DEFAULT_TIMEZONE);
date_default_timezone_set(\Magento\Stdlib\DateTime\TimezoneInterface::DEFAULT_TIMEZONE);
4 changes: 2 additions & 2 deletions app/code/Magento/AdminNotification/Block/ToolbarEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public function getLatestUnreadNotifications()
public function formatNotificationDate($dateString)
{
if (date('Ymd') == date('Ymd', strtotime($dateString))) {
return $this->formatTime($dateString, \Magento\Core\Model\LocaleInterface::FORMAT_TYPE_SHORT, false);
return $this->formatTime($dateString, \Magento\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT, false);
}
return $this->formatDate($dateString, \Magento\Core\Model\LocaleInterface::FORMAT_TYPE_MEDIUM, true);
return $this->formatDate($dateString, \Magento\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM, true);
}
}
6 changes: 3 additions & 3 deletions app/code/Magento/Authorizenet/Model/Authorizenet.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class Authorizenet extends \Magento\Payment\Model\Method\Cc
* @param \Magento\Logger\AdapterFactory $logAdapterFactory
* @param \Magento\Logger $logger
* @param \Magento\Module\ModuleListInterface $moduleList
* @param \Magento\Core\Model\LocaleInterface $locale
* @param \Magento\Stdlib\DateTime\TimezoneInterface $localeDate
* @param \Magento\Centinel\Model\Service $centinelService
* @param \Magento\Authorizenet\Model\Authorizenet\CardsFactory $cardsFactory
* @param \Magento\Authorizenet\Model\Authorizenet\RequestFactory $requestFactory
Expand All @@ -267,7 +267,7 @@ public function __construct(
\Magento\Logger\AdapterFactory $logAdapterFactory,
\Magento\Logger $logger,
\Magento\Module\ModuleListInterface $moduleList,
\Magento\Core\Model\LocaleInterface $locale,
\Magento\Stdlib\DateTime\TimezoneInterface $localeDate,
\Magento\Centinel\Model\Service $centinelService,
\Magento\Authorizenet\Model\Authorizenet\CardsFactory $cardsFactory,
\Magento\Authorizenet\Model\Authorizenet\RequestFactory $requestFactory,
Expand All @@ -290,7 +290,7 @@ public function __construct(
$logAdapterFactory,
$logger,
$moduleList,
$locale,
$localeDate,
$centinelService,
$data
);
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Authorizenet/Model/Directpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Directpost extends \Magento\Authorizenet\Model\Authorizenet
* @param \Magento\Logger\AdapterFactory $logAdapterFactory
* @param \Magento\Logger $logger
* @param \Magento\Module\ModuleListInterface $moduleList
* @param \Magento\Core\Model\LocaleInterface $locale
* @param \Magento\Stdlib\DateTime\TimezoneInterface $localeDate
* @param \Magento\Centinel\Model\Service $centinelService
* @param \Magento\Authorizenet\Model\Authorizenet\CardsFactory $cardsFactory
* @param \Magento\Authorizenet\Model\Authorizenet\RequestFactory $requestFactory
Expand All @@ -111,7 +111,7 @@ public function __construct(
\Magento\Logger\AdapterFactory $logAdapterFactory,
\Magento\Logger $logger,
\Magento\Module\ModuleListInterface $moduleList,
\Magento\Core\Model\LocaleInterface $locale,
\Magento\Stdlib\DateTime\TimezoneInterface $localeDate,
\Magento\Centinel\Model\Service $centinelService,
\Magento\Authorizenet\Model\Authorizenet\CardsFactory $cardsFactory,
\Magento\Authorizenet\Model\Authorizenet\RequestFactory $requestFactory,
Expand All @@ -133,7 +133,7 @@ public function __construct(
$logAdapterFactory,
$logger,
$moduleList,
$locale,
$localeDate,
$centinelService,
$cardsFactory,
$requestFactory,
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorizenet/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</field>
<field id="currency" translate="label" type="select" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Accepted Currency</label>
<source_model>Magento\Backend\Model\Config\Source\Currency</source_model>
<source_model>Magento\Backend\Model\Config\Source\Locale\Currency</source_model>
</field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Payment from Applicable Countries</label>
Expand Down Expand Up @@ -172,7 +172,7 @@
</field>
<field id="currency" translate="label" type="select" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Accepted Currency</label>
<source_model>Magento\Backend\Model\Config\Source\Currency</source_model>
<source_model>Magento\Backend\Model\Config\Source\Locale\Currency</source_model>
</field>
<field id="debug" translate="label" type="select" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Debug</label>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorizenet/view/adminhtml/info/cc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<?php foreach ($cards as $key => $card): ?>
<?php if ($showCount): ?>
<span><?php echo sprintf(__('Credit Card %s'), $key + 1); ?></span>
<span><?php echo __('Credit Card %1', $key + 1); ?></span>
<?php endif;?>

<table class="data-table<?php if ($showCount):?> offset<?php endif;?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>{{pdf_row_separator}}
<?php foreach ($cards as $key => $card): ?>
<?php if ($showCount): ?>
<?php echo sprintf(__('Credit Card %s'), $key + 1); ?>
<?php echo __('Credit Card %1', $key + 1); ?>
{{pdf_row_separator}}
<?php endif;?>

Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorizenet/view/frontend/info/cc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<?php foreach ($cards as $key => $card): ?>

<?php if ($showCount): ?>
<dt><?php echo sprintf(__('Credit Card %s'), $key + 1); ?></dt>
<dt><?php echo __('Credit Card %1', $key + 1); ?></dt>
<?php endif; ?>
<dd class="content">
<table class="data table">
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Backend/App/AbstractAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ abstract class AbstractAction extends \Magento\App\Action\Action
protected $_backendUrl;

/**
* @var \Magento\Core\Model\LocaleInterface
* @var \Magento\Locale\ResolverInterface
*/
protected $_locale;
protected $_localeResolver;

/**
* @var bool
Expand Down Expand Up @@ -114,7 +114,7 @@ public function __construct(Action\Context $context)
$this->_backendUrl = $context->getBackendUrl();
$this->_formKeyValidator = $context->getFormKeyValidator();
$this->_title = $context->getTitle();
$this->_locale = $context->getLocale();
$this->_localeResolver = $context->getLocaleResolver();
$this->_canUseBaseUrl = $context->getCanUseBaseUrl();
$this->_session = $context->getSession();
}
Expand Down Expand Up @@ -300,12 +300,12 @@ public function _processUrlKeys()
protected function _processLocaleSettings()
{
$forceLocale = $this->getRequest()->getParam('locale', null);
if ($this->_objectManager->get('Magento\Core\Model\Locale\Validator')->isValid($forceLocale)) {
if ($this->_objectManager->get('Magento\Locale\Validator')->isValid($forceLocale)) {
$this->_getSession()->setSessionLocale($forceLocale);
}

if (is_null($this->_getSession()->getLocale())) {
$this->_getSession()->setLocale($this->_locale->getLocaleCode());
$this->_getSession()->setLocale($this->_localeResolver->getLocaleCode());
}

return $this;
Expand Down
22 changes: 11 additions & 11 deletions app/code/Magento/Backend/App/Action/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ class Context extends \Magento\App\Action\Context
*/
protected $_title;

/**
* @var \Magento\Core\Model\LocaleInterface
*/
protected $_locale;

/**
* @var bool
*/
Expand All @@ -76,6 +71,11 @@ class Context extends \Magento\App\Action\Context
*/
protected $_session;

/**
* @var \Magento\Locale\ResolverInterface
*/
protected $_localeResolver;

/**
* @param \Magento\App\RequestInterface $request
* @param \Magento\App\ResponseInterface $response
Expand All @@ -93,7 +93,7 @@ class Context extends \Magento\App\Action\Context
* @param \Magento\Backend\Model\UrlInterface $backendUrl
* @param \Magento\Core\App\Action\FormKeyValidator $formKeyValidator
* @param \Magento\App\Action\Title $title
* @param \Magento\Core\Model\LocaleInterface $locale
* @param \Magento\Locale\ResolverInterface $localeResolver
* @param bool $canUseBaseUrl
*/
public function __construct(
Expand All @@ -113,7 +113,7 @@ public function __construct(
\Magento\Backend\Model\UrlInterface $backendUrl,
\Magento\Core\App\Action\FormKeyValidator $formKeyValidator,
\Magento\App\Action\Title $title,
\Magento\Core\Model\LocaleInterface $locale,
\Magento\Locale\ResolverInterface $localeResolver,
$canUseBaseUrl = false
) {
parent::__construct(
Expand All @@ -135,7 +135,7 @@ public function __construct(
$this->_backendUrl = $backendUrl;
$this->_formKeyValidator = $formKeyValidator;
$this->_title = $title;
$this->_locale = $locale;
$this->_localeResolver = $localeResolver;
$this->_canUseBaseUrl = $canUseBaseUrl;
}

Expand Down Expand Up @@ -188,11 +188,11 @@ public function getHelper()
}

/**
* @return \Magento\Core\Model\LocaleInterface
* @return \Magento\Locale\ResolverInterface
*/
public function getLocale()
public function getLocaleResolver()
{
return $this->_locale;
return $this->_localeResolver;
}

/**
Expand Down
17 changes: 11 additions & 6 deletions app/code/Magento/Backend/App/Action/Plugin/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,18 @@ public function __construct(
}

/**
* @param array $arguments
* @param \Magento\Code\Plugin\InvocationChain $invocationChain
* @param \Magento\Backend\App\AbstractAction $subject
* @param callable $proceed
* @param \Magento\App\RequestInterface $request
*
* @return mixed
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function aroundDispatch(array $arguments, \Magento\Code\Plugin\InvocationChain $invocationChain)
{
$request = $arguments[0];
public function aroundDispatch(
\Magento\Backend\App\AbstractAction $subject,
\Closure $proceed,
\Magento\App\RequestInterface $request
) {
$requestedActionName = $request->getActionName();
if (in_array($requestedActionName, $this->_openActions)) {
$request->setDispatched(true);
Expand All @@ -105,7 +110,7 @@ public function aroundDispatch(array $arguments, \Magento\Code\Plugin\Invocation
}
}
$this->_auth->getAuthStorage()->refreshAcl();
return $invocationChain->proceed($arguments);
return $proceed($request);
}

/**
Expand Down
19 changes: 12 additions & 7 deletions app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,24 @@ class MassactionKey
/**
* Process massaction key
*
* @param array $arguments
* @param \Magento\Code\Plugin\InvocationChain $invocationChain
* @param \Magento\Backend\App\AbstractAction $subject
* @param callable $proceed
* @param \Magento\App\RequestInterface $request
*
* @return mixed
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function aroundDispatch(array $arguments, \Magento\Code\Plugin\InvocationChain $invocationChain)
{
$request = $arguments[0];
public function aroundDispatch(
\Magento\Backend\App\AbstractAction $subject,
\Closure $proceed,
\Magento\App\RequestInterface $request
) {
$key = $request->getPost('massaction_prepare_key');
if ($key) {
$postData = $request->getPost($key);
$value = is_array($postData) ? $postData : explode(',', $postData);
$request->setPost($key, $value ? $value : null);
}
return $invocationChain->proceed($arguments);
return $proceed($request);
}
}
}
11 changes: 3 additions & 8 deletions app/code/Magento/Backend/Block/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ class Context extends \Magento\View\Element\Context
* @param \Magento\Session\SessionManagerInterface $session
* @param \Magento\Session\SidResolverInterface $sidResolver
* @param \Magento\Core\Model\Store\Config $storeConfig
* @param \Magento\App\FrontController $frontController
* @param \Magento\View\Url $viewUrl
* @param \Magento\View\ConfigInterface $viewConfig
* @param \Magento\App\Cache\StateInterface $cacheState
* @param \Magento\Logger $logger
* @param \Magento\Core\Model\App $app
* @param \Magento\Escaper $escaper
* @param \Magento\Filter\FilterManager $filterManager
* @param \Magento\Core\Model\LocaleInterface $locale
* @param \Magento\Stdlib\DateTime\TimezoneInterface $localeDate
* @param \Magento\AuthorizationInterface $authorization
* @param array $data
*
Expand All @@ -74,23 +72,20 @@ public function __construct(
\Magento\Session\SessionManagerInterface $session,
\Magento\Session\SidResolverInterface $sidResolver,
\Magento\Core\Model\Store\Config $storeConfig,
\Magento\App\FrontController $frontController,
\Magento\View\Url $viewUrl,
\Magento\View\ConfigInterface $viewConfig,
\Magento\App\Cache\StateInterface $cacheState,
\Magento\Logger $logger,
\Magento\Core\Model\App $app,
\Magento\Escaper $escaper,
\Magento\Filter\FilterManager $filterManager,
\Magento\Core\Model\LocaleInterface $locale,
\Magento\Stdlib\DateTime\TimezoneInterface $localeDate,
\Magento\AuthorizationInterface $authorization,
array $data = array()
) {
$this->_authorization = $authorization;
parent::__construct(
$request, $layout, $eventManager, $urlBuilder, $translator, $cache, $design, $session, $sidResolver,
$storeConfig, $frontController, $viewUrl, $viewConfig, $cacheState, $logger, $app, $escaper,
$filterManager, $locale, $data
$storeConfig, $viewUrl, $viewConfig, $cacheState, $logger, $escaper, $filterManager, $localeDate, $data
);
}

Expand Down
Loading

0 comments on commit c6856aa

Please sign in to comment.