Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
291
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
cb4522b40f8ff8514360027c449249dd51aabb30...20d98b4f8588332cc4387e156c04d77f2e970414
Source
20d98b4f8588332cc4387e156c04d77f2e970414
...
Target
cb4522b40f8ff8514360027c449249dd51aabb30
Compare
Commits (2)
(chore): Add type hint to export() and use Di on mobile controller
· a5740b63
Emiliano Balbuena
authored
1 hour ago
a5740b63
(cs): Lint
· 20d98b4f
Emiliano Balbuena
authored
1 hour ago
20d98b4f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
Controllers/api/v1/minds/config.php
View file @
20d98b4f
...
...
@@ -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
()
);
}
...
...
This diff is collapsed.
Core/Config/Exported.php
View file @
20d98b4f
...
...
@@ -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'
;
...
...
This diff is collapsed.
Core/Front/Index.php
View file @
20d98b4f
...
...
@@ -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'
);
...
...
This diff is collapsed.
Core/Front/Provider.php
View file @
20d98b4f
...
...
@@ -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
]);
}
...
...
This diff is collapsed.