Jaxel
Well-known member
I'm setting up a new report system... and to do it, I'm going through how the existing report system works and trying to emulate it as much as possible.
However, I'm running into a snag in XF\App. In this class,
Firstly, its preloaded in
How would I extend this class to create my own counters?
However, I'm running into a snag in XF\App. In this class,
reportCounts
is used twice.Firstly, its preloaded in
$preLoadShared
. Secondly, its cached in initialize()
:
Code:
$container['reportCounts'] = $this->fromRegistry('reportCounts',
function(Container $c) { return $c['em']->getRepository('XF:Report')->rebuildReportCounts(); }
);
How would I extend this class to create my own counters?