diff --git a/app/AppKernel.php b/app/AppKernel.php index 45ddc2e..95fd4a0 100755 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -16,6 +16,7 @@ public function registerBundles() new Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), + new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(), // enable cmf bundles new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle(), diff --git a/app/config/config.yml b/app/config/config.yml index ec5755c..7f98702 100755 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -50,4 +50,11 @@ knp_menu: symfony_cmf_menu: use_sonata_admin: false - menu_basepath: /cms \ No newline at end of file + menu_basepath: /cms + +liip_doctrine_cache: + namespaces: + meta: + type: file_system + nodes: + type: file_system diff --git a/app/config/parameters.yml b/app/config/parameters.yml index 7b1f959..1c3c2a8 100755 --- a/app/config/parameters.yml +++ b/app/config/parameters.yml @@ -4,7 +4,12 @@ parameters: secret: 10784a86848b5412b5f7fa644e90ef24e database_driver: pdo_sqlite database_path: '%kernel.root_dir%/app.sqlite' - phpcr_backend: { type: doctrinedbal, connection: doctrine.dbal.default_connection } + phpcr_backend: + type: doctrinedbal + connection: doctrine.dbal.default_connection + caches: + meta: liip_doctrine_cache.ns.meta + nodes: liip_doctrine_cache.ns.nodes phpcr_workspace: default phpcr_user: admin phpcr_pass: admin diff --git a/composer.json b/composer.json index 4afa953..2809a0c 100755 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "doctrine/doctrine-bundle": "1.0.*", "doctrine/doctrine-fixtures-bundle": "dev-master", "liip/functional-test-bundle": "dev-master", - "lunetics/locale-bundle": "dev-master" + "lunetics/locale-bundle": "dev-master", + "liip/doctrine-cache-bundle": "dev-master" }, "scripts": { "post-install-cmd": [ diff --git a/composer.lock b/composer.lock index 933db5b..7db9a32 100755 --- a/composer.lock +++ b/composer.lock @@ -1,5 +1,5 @@ { - "hash": "17ecbe66b407021e9dda817b17bfe203", + "hash": "7abc85494c67a9beb430c535f6dd9b5a", "packages": [ { "name": "doctrine/common", @@ -621,7 +621,7 @@ "knplabs/knp-menu": "1.1.*", "symfony/framework-bundle": ">=2.0,<2.2-dev" }, - "time": "2012-05-17 11:56:49", + "time": "2012-05-17 05:56:49", "type": "symfony-bundle", "installation-source": "dist", "autoload": { @@ -651,6 +651,49 @@ "menu" ] }, + { + "name": "liip/doctrine-cache-bundle", + "version": "dev-master", + "target-dir": "Liip/DoctrineCacheBundle", + "source": { + "type": "git", + "url": "git://github.com/liip/LiipDoctrineCacheBundle.git", + "reference": "f7c5487c89602d08b95090fb2776f0931d8946a1" + }, + "dist": { + "type": "zip", + "url": "https://github.com/liip/LiipDoctrineCacheBundle/zipball/f7c5487c89602d08b95090fb2776f0931d8946a1", + "reference": "f7c5487c89602d08b95090fb2776f0931d8946a1", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "symfony/symfony": ">=2.0", + "doctrine/common": ">=2.2" + }, + "time": "1347620900", + "type": "symfony-bundle", + "installation-source": "source", + "autoload": { + "psr-0": { + "Liip\\DoctrineCacheBundle\\": "" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Liip AG", + "homepage": "http://www.liip.ch/" + } + ], + "description": "This Bundle provides integration into Symfony2 with the Doctrine Common Cache layer.", + "keywords": [ + "Symfony2", + "cache" + ] + }, { "name": "liip/functional-test-bundle", "version": "dev-master", @@ -1080,12 +1123,12 @@ "source": { "type": "git", "url": "https://github.com/symfony-cmf/Routing", - "reference": "5b56ecfaa74813ae88f175b42ee1b480f0e9e161" + "reference": "42b54cf62223be20ee184a50413bc8fee60aa37a" }, "dist": { "type": "zip", - "url": "https://github.com/symfony-cmf/Routing/zipball/5b56ecfaa74813ae88f175b42ee1b480f0e9e161", - "reference": "5b56ecfaa74813ae88f175b42ee1b480f0e9e161", + "url": "https://github.com/symfony-cmf/Routing/zipball/42b54cf62223be20ee184a50413bc8fee60aa37a", + "reference": "42b54cf62223be20ee184a50413bc8fee60aa37a", "shasum": "" }, "require": { @@ -1493,6 +1536,7 @@ "jackalope/jackalope-doctrine-dbal": 20, "doctrine/doctrine-fixtures-bundle": 20, "liip/functional-test-bundle": 20, - "lunetics/locale-bundle": 20 + "lunetics/locale-bundle": 20, + "liip/doctrine-cache-bundle": 20 } }