...
 
Commits (2)
......@@ -21,7 +21,7 @@ class config implements Interfaces\Api, Interfaces\ApiIgnorePam
public function get($pages)
{
return Factory::response(
(new Core\Config\Exported())
Core\Di\Di::_()->get('Config\Exported')
->export()
);
}
......
......@@ -39,8 +39,7 @@ class Exported
$thirdPartyNetworks = null,
$i18n = null,
$blockchain = null
)
{
) {
$this->config = $config ?: Di::_()->get('Config');
$this->thirdPartyNetworks = $thirdPartyNetworks ?: Di::_()->get('ThirdPartyNetworks\Manager');
$this->i18n = $i18n ?: Di::_()->get('I18n');
......@@ -50,7 +49,7 @@ class Exported
/**
* @return array
*/
public function export()
public function export(): array
{
$context = defined('__MINDS_CONTEXT__') ? __MINDS_CONTEXT__ : 'app';
......
......@@ -43,8 +43,7 @@ class Index
public function __construct(
$configExported = null,
$proDomain = null
)
{
) {
$this->configExported = $configExported ?: Di::_()->get('Config\Exported');
$this->proDomain = $proDomain ?: Di::_()->get('Pro\Domain');
......
......@@ -12,7 +12,7 @@ class Provider extends DiProvider
{
public function register()
{
$this->di->bind('Front\Index', function() {
$this->di->bind('Front\Index', function () {
return new Index();
}, [ 'useFactory' => true ]);
}
......