constants with define are global outside of class definitions, with const they work in- and outside of classes.
both ways no need to pull them functions/members in with global.
[ ] onion should be easy to change in several places, so make it a constant
[ ] make "global" settings constants
[ ] add debug setting, e.g. with constants for error_reporting => 0 off, -1 all
constants with
define
are global outside of class definitions, withconst
they work in- and outside of classes. both ways no need to pull them functions/members in withglobal
.