File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
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 );
You can’t perform that action at this time.
0 commit comments