ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
return [
|
||||
[
|
||||
'groups' => [
|
||||
'restrict' => ['fields' => ['allow_ips' => ['value' => '']]],
|
||||
'debug' => [
|
||||
'fields' => [
|
||||
'template_hints_admin' => ['value' => '0'],
|
||||
'template_hints_blocks' => ['value' => '0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
return [
|
||||
[
|
||||
'section' => 'dev',
|
||||
'groups' => [
|
||||
'log' => [
|
||||
'fields' => [
|
||||
'active' => ['value' => '1'],
|
||||
'file' => ['value' => 'fileName.log'],
|
||||
'exception_file' => ['value' => 'exceptionFileName.log'],
|
||||
],
|
||||
],
|
||||
'debug' => [
|
||||
'fields' => [
|
||||
'template_hints_storefront' => ['value' => '1'],
|
||||
'template_hints_blocks' => ['value' => '0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'expected' => [
|
||||
'dev/log' => [
|
||||
'dev/log/active' => '1',
|
||||
'dev/log/file' => 'fileName.log',
|
||||
'dev/log/exception_file' => 'exceptionFileName.log',
|
||||
],
|
||||
'dev/debug' => [
|
||||
'dev/debug/template_hints_storefront' => '1',
|
||||
'dev/debug/template_hints_blocks' => '0',
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
use Magento\Framework\App\Filesystem\DirectoryList;
|
||||
|
||||
/** @var \Magento\Framework\Filesystem\Directory\Write $rootDirectory */
|
||||
$rootDirectory = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
|
||||
\Magento\Framework\Filesystem::class
|
||||
)->getDirectoryWrite(
|
||||
DirectoryList::PUB
|
||||
);
|
||||
if ($rootDirectory->isExist('robots.txt')) {
|
||||
$rootDirectory->delete('robots.txt');
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Sitemap: http://store.com/sitemap.xml
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Framework\App\Filesystem\DirectoryList;
|
||||
use Magento\Framework\Filesystem;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
|
||||
/** @var $fileSystem Filesystem */
|
||||
$fileSystem = Bootstrap::getObjectManager()->get(Filesystem::class);
|
||||
$pubDirectory = $fileSystem->getDirectoryWrite(DirectoryList::PUB);
|
||||
$rootDirectory = $fileSystem->getDirectoryRead(DirectoryList::ROOT);
|
||||
$source = $rootDirectory->getAbsolutePath(__DIR__ . '/robots.txt');
|
||||
$content = $rootDirectory->readFile(__DIR__ . '/robots.txt');
|
||||
$pubDirectory->writeFile('robots.txt', $content);
|
||||
Reference in New Issue
Block a user