diff options
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 8c4f65f0..b61fa30d 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -38,6 +38,10 @@ require_once(PRADO_DIR.'/Security/TSecurityManager.php'); * Includes TPageService class (default service) */ require_once(PRADO_DIR.'/Web/Services/TPageService.php'); +/** + * Includes TAssetManager class + */ +require_once(PRADO_DIR.'/Web/TAssetManager.php'); /** @@ -253,6 +257,10 @@ class TApplication extends TComponent */ private $_security=null; /** + * @var TAssetManager asset manager module + */ + private $_assetManager=null; + /** * @var TAuthorizationRuleCollection collection of authorization rules */ private $_authRules=null; @@ -678,6 +686,27 @@ class TApplication extends TComponent } /** + * @return TAssetManager asset manager + */ + public function getAssetManager() + { + if(!$this->_assetManager) + { + $this->_assetManager=new TAssetManager; + $this->_assetManager->init(null); + } + return $this->_assetManager; + } + + /** + * @param TAssetManager asset manager + */ + public function setAssetManager(TAssetManager $value) + { + $this->_assetManager=$value; + } + + /** * @return IStatePersister application state persister */ public function getApplicationStatePersister() |