Skip to content

Commit df8637e

Browse files
committed
Create source_model.php
1 parent a21f473 commit df8637e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

source_model.php

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
ini_set('display_startup_errors', 1);ini_set('display_errors', 1); error_reporting(-1);
3+
use Magento\Theme\Model\Theme\Collection;
4+
use Magento\Framework\App\Area;
5+
6+
require dirname(__FILE__) . '/app/bootstrap.php';
7+
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
8+
9+
class changeConfig extends \Magento\Framework\App\Http
10+
implements \Magento\Framework\AppInterface {
11+
public function launch()
12+
{
13+
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
14+
$objectManager = $bootstrap->getObjectManager();
15+
$appState = $objectManager->get('Magento\Framework\App\State');
16+
$appState->setAreaCode('adminhtml');
17+
$field = $objectManager->create('Magento\Config\Model\Config\Structure')->getElementByConfigPath('customer/create_account/auto_group_assign');
18+
echo $field->getData()['source_model'];
19+
return $this->_response;
20+
}
21+
22+
23+
}
24+
25+
/** @var \Magento\Framework\App\Http $app */
26+
$app = $bootstrap->createApplication('changeConfig');
27+
$bootstrap->run($app);

0 commit comments

Comments
 (0)