Civi\Core\Container - Simplify handling of `bootServices` using `setSynthetic()`
authorTim Otten <totten@civicrm.org>
Wed, 10 Feb 2016 01:36:16 +0000 (17:36 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 15 Feb 2016 22:23:50 +0000 (14:23 -0800)
commit56eafc21948ae7f6c2cf4c313e081789465145b1
tree281d58a49dd18b3f41beeb1b209af76a1186de7e
parent728bbd5bbad0b5269dcd0a4cb70384291d309e70
Civi\Core\Container - Simplify handling of `bootServices` using `setSynthetic()`

`bootServices` are services that must be setup before the container can be
instantiated -- but which should be available through the container.

We had been using some work-arounds with factory functions to get this
effect, but this was fairly verbose.  It's simpler to use the
`setSynthetic()` option.
Civi/Core/Container.php