summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-07-08 18:18:28 +0200
committerDavid <ottodavid@gmx.net>2015-07-08 18:18:28 +0200
commit0adeb70975cb1ecfcf2fe70576aedf33e0dc99bc (patch)
treed11c3b3db01d994a7b1276f5c8d8f442d5a4856d /framework/Web
parent35f7014c4dc2181170dac9b5c43592d136246ea5 (diff)
Use Prado::createComponent instead of new for Pages
This allows to use a custom Prado::createComponent as an hook for dependency injection containers
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Services/TPageService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index f0dd8c1a..1276d213 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -501,7 +501,7 @@ class TPageService extends TService
if(!class_exists($className,false) || ($className!=='TPage' && !is_subclass_of($className,'TPage')))
throw new THttpException(404,'pageservice_page_unknown',$pagePath);
- $page=new $className;
+ $page=Prado::createComponent($className);
$page->setPagePath($pagePath);
if($hasTemplateFile)