From ca2fcb3a1ba9a2ca989727be1e53b412c56f5d49 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 17 Jun 2025 17:16:19 +0200 Subject: [PATCH] Make entities initialization a tiny bit faster --- controller.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/controller.php b/controller.php index 0dcb39b..925594f 100644 --- a/controller.php +++ b/controller.php @@ -1,6 +1,8 @@ installContentFile('config/install.xml'); } + /** + * {@inheritdoc} + * + * @see \Concrete\Core\Database\EntityManager\Provider\ProviderAggregateInterface::getEntityManagerProvider() + */ + public function getEntityManagerProvider() + { + return new StandardPackageProvider($this->app, $this, [ + 'src/Concrete/Entity' => 'Concrete\\Package\\RedirectByBrowserLang\\Entity', + ]); + } + public function on_start() { $director = $this->app->make('director');