-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:magento/magento2ce into MAGETWO-…
…53010 Conflicts: app/code/Magento/Email/composer.json
- Loading branch information
Showing
632 changed files
with
9,010 additions
and
6,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.