File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414use Evas \Di \Definitions \Reference ;
1515
1616if (! function_exists ('create ' )) {
17- function create (string $ className , array $ args = null ) {
18- return new CreateObject ($ className , $ args );
17+ function create (string $ className , array $ args = null , callable $ callback = null ) {
18+ return new CreateObject ($ className , $ args, $ callback );
1919 }
2020}
2121if (! function_exists ('createOnce ' )) {
22- function createOnce (string $ className , array $ args = null ) {
23- return (new CreateObject ($ className , $ args ))->once ();
22+ function createOnce (string $ className , array $ args = null , callable $ callback = null ) {
23+ return (new CreateObject ($ className , $ args, $ callback ))->once ();
2424 }
2525}
2626if (! function_exists ('includeFile ' )) {
You can’t perform that action at this time.
0 commit comments