The method initialize() contains an exit expression.
An exit expression should only be used in rare cases. For example, if you
write a short command line script.
In most cases however, using an exit expression makes the code untestable
and often causes incompatibilities with other libraries. Thus, unless you are
absolutely sure it is required here, we recommend to refactor your code to
avoid its usage.
Loading history...
22
}
23
1
$this->getDb();
24
1
}
25
26
/**
27
* Find and require SilverStripe. This will look in:
28
*
29
* - The current working directory (for when installed globally with composer)
30
* - The next directory up (for when installed locally into a SilverStripe project)
31
* - The console's "silverstripe" directory (for when installed in a build process)
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.