Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:magento/magento2ce into MAGETWO-…
Browse files Browse the repository at this point in the history
…53010

Conflicts:
	app/code/Magento/Email/composer.json
  • Loading branch information
Oleksandr Karpenko committed Jun 17, 2016
2 parents 2f32aed + 3561b66 commit d74e78b
Show file tree
Hide file tree
Showing 632 changed files with 9,010 additions and 6,042 deletions.
10 changes: 7 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@

###########################################
## Deny access to root files to hide sensitive application information
RedirectMatch 404 /\.git
RedirectMatch 403 /\.git

<Files composer.json>
order allow,deny
Expand Down Expand Up @@ -277,10 +277,14 @@
deny from all
</Files>
<Files magento_umask>
order allow,deny
deny from all
order allow,deny
deny from all
</Files>

# For 404s and 403s that aren't handled by the application, show plain 404 response
ErrorDocument 404 /pub/errors/404.php
ErrorDocument 403 /pub/errors/404.php

################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags
Expand Down
61 changes: 33 additions & 28 deletions .htaccess.sample
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
############################################
## Optional override of deployment mode. We recommend you use the
## command bin/magento deploy:mode:set to switch modes instead
# SetEnv MAGE_MODE default # or production or developer
## overrides deployment configuration mode value
## use command bin/magento deploy:mode:set to switch modes

# SetEnv MAGE_MODE developer

############################################
## Uncomment these lines for CGI mode.
## Make sure to specify the correct cgi php binary file name
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

# Action php5-cgi /cgi-bin/php5-cgi
Expand All @@ -16,42 +17,42 @@

# Options -MultiViews

## You might also need to add this line to php.ini
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## If it still doesn't work, rename php.ini to php5.ini
## if it still doesn't work, rename php.ini to php5.ini

############################################
## This line is specific for 1and1 hosting
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

############################################
## Default index file
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## Adjust memory limit
## adjust memory limit

php_value memory_limit 768M
php_value max_execution_time 18000

############################################
## Disable automatic session start
## disable automatic session start
## before autoload was initialized

php_flag session.auto_start off

############################################
## Enable resulting html compression
## enable resulting html compression

#php_flag zlib.output_compression on

###########################################
## Disable user agent verification to not break multiple image upload
## disable user agent verification to not break multiple image upload

php_flag suhosin.session.cryptua off

Expand All @@ -60,32 +61,32 @@
<IfModule mod_php7.c>

############################################
## Adjust memory limit
## adjust memory limit

php_value memory_limit 768M
php_value max_execution_time 18000

############################################
## Disable automatic session start
## disable automatic session start
## before autoload was initialized

php_flag session.auto_start off

############################################
## Enable resulting html compression
## enable resulting html compression

#php_flag zlib.output_compression on

###########################################
## Disable user agent verification to not break multiple image upload
## disable user agent verification to not break multiple image upload

php_flag suhosin.session.cryptua off

</IfModule>

<IfModule mod_security.c>
###########################################
## Disable POST processing to not break multiple image upload
## disable POST processing to not break multiple image upload

SecFilterEngine Off
SecFilterScanPOST Off
Expand All @@ -94,7 +95,7 @@
<IfModule mod_deflate.c>

############################################
## Enable apache served files compression
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter on all content
Expand Down Expand Up @@ -122,14 +123,14 @@
<IfModule mod_ssl.c>

############################################
## Make HTTPS env vars available for CGI mode
## make HTTPS env vars available for CGI mode

SSLOptions StdEnvVars

</IfModule>

############################################
## Workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
## Please, set it on virtual host configuration level

## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Expand All @@ -138,19 +139,19 @@
<IfModule mod_rewrite.c>

############################################
## Enable rewrites
## enable rewrites

Options +FollowSymLinks
RewriteEngine on

############################################
## You can put here your magento root folder
## you can put here your magento root folder
## path relative to web root

#RewriteBase /magento/

############################################
## Workaround for HTTP authorization
## workaround for HTTP authorization
## in CGI environment

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Expand All @@ -162,21 +163,21 @@
RewriteRule .* - [L,R=405]

############################################
## Redirect for mobile user agents
## redirect for mobile user agents

#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

############################################
## Never rewrite for existing files, directories and links
## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

############################################
## Rewrite everything else to index.php
## rewrite everything else to index.php

RewriteRule .* index.php [L]

Expand Down Expand Up @@ -205,7 +206,7 @@

###########################################
## Deny access to root files to hide sensitive application information
RedirectMatch 404 /\.git
RedirectMatch 403 /\.git

<Files composer.json>
order allow,deny
Expand Down Expand Up @@ -280,6 +281,10 @@
deny from all
</Files>

# For 404s and 403s that aren't handled by the application, show plain 404 response
ErrorDocument 404 /pub/errors/404.php
ErrorDocument 403 /pub/errors/404.php

################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ php:
env:
global:
- COMPOSER_BIN_DIR=~/bin
- INTEGRATION_SETS=2
- INTEGRATION_SETS=3
matrix:
- TEST_SUITE=unit
- TEST_SUITE=integration INTEGRATION_INDEX=1
- TEST_SUITE=integration INTEGRATION_INDEX=2
- TEST_SUITE=integration INTEGRATION_INDEX=3
- TEST_SUITE=static
cache:
apt: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Use the following table to verify you have the correct prerequisites to install
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache.html">Apache</a></td>
</tr>
<tr>
<td>PHP ~5.5.22 or 5.6.x</td>
<td>PHP 5.6.x, 7.0.2 or 7.0.6</td>
<td><code>php -v</code></td>
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-ubuntu.html">PHP Ubuntu</a><br><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html">PHP CentOS</a></td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#ini_set('display_errors', 1);

/* PHP version validation */
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50522) {
if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID >= 70006)) {
if (PHP_SAPI == 'cli') {
echo 'Magento supports PHP 5.5.22 or later. ' .
echo 'Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. ' .
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html';
} else {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<p>Magento supports PHP 5.5.22 or later. Please read
<p>Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html">
Magento System Requirements</a>.
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "magento/module-admin-notification",
"description": "N/A",
"require": {
"php": "~5.5.22|~5.6.0|~7.0.0",
"php": "~5.6.0|7.0.2|~7.0.6",
"magento/module-store": "100.1.*",
"magento/module-backend": "100.1.*",
"magento/module-media-storage": "100.1.*",
"magento/framework": "100.1.*",
"lib-libxml": "*"
},
"type": "magento2-module",
"version": "100.1.0-rc1",
"version": "100.1.0-rc3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/AdvancedPricingImportExport/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-advanced-pricing-import-export",
"description": "N/A",
"require": {
"php": "~5.5.22|~5.6.0|~7.0.0",
"php": "~5.6.0|7.0.2|~7.0.6",
"magento/module-catalog": "101.0.*",
"magento/module-catalog-inventory": "100.1.*",
"magento/module-eav": "100.1.*",
Expand All @@ -13,7 +13,7 @@
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0-rc1",
"version": "100.1.0-rc3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "magento/module-authorization",
"description": "Authorization module provides access to Magento ACL functionality.",
"require": {
"php": "~5.5.22|~5.6.0|~7.0.0",
"php": "~5.6.0|7.0.2|~7.0.6",
"magento/module-backend": "100.1.*",
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0-rc1",
"version": "100.1.0-rc3",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorizenet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-authorizenet",
"description": "N/A",
"require": {
"php": "~5.5.22|~5.6.0|~7.0.0",
"php": "~5.6.0|7.0.2|~7.0.6",
"magento/module-sales": "100.1.*",
"magento/module-store": "100.1.*",
"magento/module-quote": "100.1.*",
Expand All @@ -13,7 +13,7 @@
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0-rc1",
"version": "100.1.0-rc3",
"license": [
"proprietary"
],
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Backend/Model/Session/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ public function getQuote()
if ($this->getStoreId()) {
if (!$this->getQuoteId()) {
$this->_quote->setCustomerGroupId($this->groupManagement->getDefaultGroup()->getId());
$this->_quote->setIsActive(false);
$this->_quote->setStoreId($this->getStoreId());

$this->quoteRepository->save($this->_quote);
$this->setQuoteId($this->_quote->getId());
$this->_quote = $this->quoteRepository->get($this->getQuoteId(), [$this->getStoreId()]);
Expand Down
47 changes: 47 additions & 0 deletions app/code/Magento/Backend/Model/Setup/MenuBuilder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Backend\Model\Setup;

use Magento\Backend\Model\Menu;
use Magento\Backend\Model\Menu\Builder;
use Magento\Framework\App\DocRootLocator;

/**
* Plugin class to remove web setup wizard from menu if application root is pub/ and no setup url variable is specified.
*/
class MenuBuilder
{
/**
* @var DocRootLocator
*/
protected $docRootLocator;

/**
* MenuBuilder constructor.
*
* @param DocRootLocator $docRootLocator
*/
public function __construct(DocRootLocator $docRootLocator)
{
$this->docRootLocator = $docRootLocator;
}

/**
* Removes 'Web Setup Wizard' from the menu if doc root is pub and no setup url variable is specified.
*
* @param Builder $subject
* @param Menu $menu
* @return Menu
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGetResult(Builder $subject, Menu $menu)
{
if ($this->docRootLocator->isPub()) {
$menu->remove('Magento_Backend::setup_wizard');
}
return $menu;
}
}
Loading

0 comments on commit d74e78b

Please sign in to comment.