diff --git a/bundles/block/cache.rst b/bundles/block/cache.rst index 2b5e87fc..a699d20a 100644 --- a/bundles/block/cache.rst +++ b/bundles/block/cache.rst @@ -25,11 +25,11 @@ Installation ------------ The installation is split between the SonataCacheBundle, the -SymfonyCmfBlockBundle and the SonataBlockBundle: +CmfBlockBundle and the SonataBlockBundle: 1. *SonataCacheBundle* - Follow the installation instructions from the `SonataCacheBundle documentation`_. -2. *SymfonyCmfBlockBundle* - At the end of your routing file, add the +2. *CmfBlockBundle* - At the end of your routing file, add the following lines: .. configuration-block:: @@ -39,9 +39,9 @@ SymfonyCmfBlockBundle and the SonataBlockBundle: # app/config/routing.yml # ... - # routes SymfonyCmfBlockBundle cache adapters + # routes CmfBlockBundle cache adapters block_cache: - resource: "@SymfonyCmfBlockBundle/Resources/config/routing/cache.xml" + resource: "@CmfBlockBundle/Resources/config/routing/cache.xml" prefix: / 3. *SonataBlockBundle* - Use the ``sonata_block`` key to configure the cache @@ -55,9 +55,9 @@ SymfonyCmfBlockBundle and the SonataBlockBundle: sonata_block: # ... blocks: - symfony_cmf.block.action: + cmf.block.action: # use the service id of the cache adapter - cache: symfony_cmf.block.cache.js_async + cache: cmf.block.cache.js_async Workflow -------- @@ -180,7 +180,7 @@ Configuration .. code-block:: yaml # app/config/config.yml - symfony_cmf_block: + cmf_block: # ... caches: esi: @@ -201,7 +201,7 @@ Configuration .. code-block:: yaml # app/config/config.yml - symfony_cmf_block: + cmf_block: # ... caches: ssi: diff --git a/bundles/block/introduction.rst b/bundles/block/introduction.rst index 7bc1a8ea..c5415c16 100644 --- a/bundles/block/introduction.rst +++ b/bundles/block/introduction.rst @@ -23,14 +23,14 @@ This bundle is based on the `SonataBlockBundle`_. Configuration ------------- -The configuration key for this bundle is ``symfony_cmf_block``: +The configuration key for this bundle is ``cmf_block``: .. configuration-block:: .. code-block:: yaml # app/config/config.yml - symfony_cmf_block: + cmf_block: document_manager_name: default .. code-block:: xml @@ -49,7 +49,7 @@ The configuration key for this bundle is ``symfony_cmf_block``: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_block', array( + $container->loadFromExtension('cmf_block', array( 'document_manager_name' => 'default', )); diff --git a/bundles/block/types.rst b/bundles/block/types.rst index 771697e6..1ed86b2c 100644 --- a/bundles/block/types.rst +++ b/bundles/block/types.rst @@ -29,14 +29,14 @@ All available settings are: * **maxItems**: the maximum amount of items to return to the template (*default*: 10) * **template**: the template to render the feed items (*default*: - ``SymfonyCmfBlockBundle:Block:block_rss.html.twig``) + ``CmfBlockBundle:Block:block_rss.html.twig``) * **ItemClass**: the class used for the item objects that are passed to the template (*default*: ``Symfony\Cmf\Bundle\BlockBundle\Model\FeedItem``) The controller to get the feed items can also be changed: * Define a different class for the controller service in your configuration - using the DI service parameter ``symfony_cmf_block.rss_controller_class`` + using the DI service parameter ``cmf_block.rss_controller_class`` * or set the actionName of your RssBlock document .. note:: @@ -51,7 +51,7 @@ out of PHPCR. The block has a child of type ``nt:file`` and fields for the name of the imagine filter to use, an URL and an image caption. To use this block, you need to add ``liip/imagine-bundle`` to your composer.json and define the imagine filter you specify in the block. The default name is -``symfony_cmf_block``. The filter must use the ``phpcr`` driver: +``cmf_block``. The filter must use the ``phpcr`` driver: .. configuration-block:: @@ -61,7 +61,7 @@ define the imagine filter you specify in the block. The default name is liip_imagine: # ... filter_sets: - symfony_cmf_block: + cmf_block: data_loader: phpcr quality: 85 filters: @@ -77,7 +77,7 @@ define the imagine filter you specify in the block. The default name is - + @@ -90,7 +90,7 @@ define the imagine filter you specify in the block. The default name is $container->loadFromExtension('liip_imagine', array( // ... 'filter_sets' => array( - 'symfony_cmf_block' => array( + 'cmf_block' => array( 'data_loader' => 'phpcr', 'quality' => 85, 'filters' => array( @@ -201,11 +201,11 @@ following line to your sonata admin configuration: blocks: label: Blocks items: - - symfony_cmf_block.slideshow_admin + - cmf_block.slideshow_admin However, you can also embed the slideshow administration directly into other admin classes using the ``sonata_type_admin`` form type. The admin -service to use in that case is ``symfony_cmf_block.slideshow_admin``. +service to use in that case is ``cmf_block.slideshow_admin``. Please refer to the `Sonata Admin documentation`_ for further information. diff --git a/bundles/blog.rst b/bundles/blog.rst index 262153be..c09bb2f2 100644 --- a/bundles/blog.rst +++ b/bundles/blog.rst @@ -27,8 +27,8 @@ Notes on this document Dependencies ------------ -* :doc:`SymfonyCmfRoutingBundle ` is used to manage the routing; -* :doc:`SymfonyCmfRoutingAutoBundle` is used to manage automatically generate routes; +* :doc:`CmfRoutingBundle ` is used to manage the routing; +* :doc:`CmfRoutingAutoBundle` is used to manage automatically generate routes; * :doc:`PHPCR-ODM` is used to persist the bundles documents. Configuration @@ -41,7 +41,7 @@ Example: .. code-block:: yaml # app/config.yml - symfony_cmf_blog: + cmf_blog: use_sonata_admin: auto blog_basepath: /cms/blog class: @@ -53,22 +53,22 @@ Example: .. code-block:: xml - - - + .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_blog', array( + $container->loadFromExtension('cmf_blog', array( 'use_sonata_admin' => 'auto', 'blog_basepath' => '/cms/blog', 'class' => array( @@ -98,7 +98,7 @@ Explanation: Auto Routing ~~~~~~~~~~~~ -The blog bundle uses the ``SymfonyCmfRoutingAuto`` bundle to generate a route +The blog bundle uses the ``CmfRoutingAuto`` bundle to generate a route for each content. You will need an auto routing configuration for this to work. You can include the default in the main configuration file as follows: @@ -110,7 +110,7 @@ You can include the default in the main configuration file as follows: # app/config/config.yml imports: # ... - - { resource: @SymfonyCmfBlogBundle/Resources/config/routing/autoroute_default.yml } + - { resource: @CmfBlogBundle/Resources/config/routing/autoroute_default.yml } # ... .. code-block:: xml @@ -118,7 +118,7 @@ You can include the default in the main configuration file as follows: - + @@ -140,44 +140,44 @@ Content Routing To enable the routing system to automatically forward requests to the blog controller when a ``Blog`` or ``Post`` content is associated with a route, add the following under the ``controllers_by_class`` section of -``symfony_cmf_routing_extra`` in the main configuration file: +``cmf_routing_extra`` in the main configuration file: .. configuration-block:: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing_extra: + cmf_routing_extra: # ... dynamic: # ... controllers_by_class: # ... - Symfony\Cmf\Bundle\BlogBundle\Document\Blog: symfony_cmf_blog.blog_controller:listAction - Symfony\Cmf\Bundle\BlogBundle\Document\Post: symfony_cmf_blog.blog_controller:viewPostAction + Symfony\Cmf\Bundle\BlogBundle\Document\Blog: cmf_blog.blog_controller:listAction + Symfony\Cmf\Bundle\BlogBundle\Document\Post: cmf_blog.blog_controller:viewPostAction .. code-block:: xml - - - + + - symfony_cmf_blog.blog_controller:listAction" - - - + cmf_blog.blog_controller:listAction" + + + .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing_extra', array( + $container->loadFromExtension('cmf_routing_extra', array( // ... 'dynamic' => array( 'controllers_by_class' => array( - 'Symfony\Cmf\Bundle\BlogBundle\Document\Blog' => 'symfony_cmf_blog.blog_controller:listAction', - 'Symfony\Cmf\Bundle\BlogBundle\Document\Post' => 'symfony_cmf_blog.blog_controller:viewPostAction', + 'Symfony\Cmf\Bundle\BlogBundle\Document\Blog' => 'cmf_blog.blog_controller:listAction', + 'Symfony\Cmf\Bundle\BlogBundle\Document\Post' => 'cmf_blog.blog_controller:viewPostAction', ), ), )); @@ -202,8 +202,8 @@ blog system visible on your dashboard, add the following to the blog: label: blog items: - - symfony_cmf_blog.admin - - symfony_cmf_post.admin + - cmf_blog.admin + - cmf_post.admin .. code-block:: php @@ -216,8 +216,8 @@ blog system visible on your dashboard, add the following to the 'blog' => array( 'label' => 'blog', 'items' => array( - 'symfony_cmf_blog.admin', - 'symfony_cmf_post.admin', + 'cmf_blog.admin', + 'cmf_post.admin', ), ), ), @@ -271,7 +271,7 @@ to do this is to create the following file: .. code-block:: jinja - {# /app/Resources/SymfonyCmfBlogBundle/views/default_layout.html.twig #} + {# /app/Resources/CmfBlogBundle/views/default_layout.html.twig #} {% extends "MyApplicationBundle::my_layout.html.twig" %} @@ -279,7 +279,7 @@ to do this is to create the following file: {% endblock %} The blog will now use ``MyApplicationBundle::my_layout.html.twig`` instead of -``SymfonyCmfBlogBundle::default_layout.html.twig``. +``CmfBlogBundle::default_layout.html.twig``. See `Overriding Bundle Templates`_ in the Symfony documentation for more information. diff --git a/bundles/content.rst b/bundles/content.rst index 95668be7..ea109daf 100644 --- a/bundles/content.rst +++ b/bundles/content.rst @@ -12,14 +12,14 @@ For an introduction see the :doc:`../getting-started/content` article in the Configuration ------------- -The configuration key for this bundle is ``symfony_cmf_content``: +The configuration key for this bundle is ``cmf_content``: .. configuration-block:: .. code-block:: yaml # app/config/config.yml - symfony_cmf_content: + cmf_content: admin_class: ~ document_class: ~ default_template: ~ diff --git a/bundles/core.rst b/bundles/core.rst index 940b0ca2..eaef7c5e 100644 --- a/bundles/core.rst +++ b/bundles/core.rst @@ -22,7 +22,7 @@ Configuration .. code-block:: yaml # app/config/config.yml - symfony_cmf_core: + cmf_core: document_manager: default role: IS_AUTHENTICATED_ANONYMOUSLY # used by the publish workflow checker @@ -31,13 +31,13 @@ Configuration Publish workflow checker ------------------------ -The Bundle provides a ``symfony_cmf_core.publish_workflow_checker`` service +The Bundle provides a ``cmf_core.publish_workflow_checker`` service which implements ``PublishWorkflowCheckerInterface``. This interface defines a single method ``checkIsPublished()``. .. code-block:: php - $publishWorkflowChecker = $container->get('symfony_cmf_core.publish_workflow_checker'); + $publishWorkflowChecker = $container->get('cmf_core.publish_workflow_checker'); // if to ignore the role when deciding if to consider the document as published $ignoreRole = false; diff --git a/bundles/create.rst b/bundles/create.rst index bb538085..81402a7e 100644 --- a/bundles/create.rst +++ b/bundles/create.rst @@ -77,7 +77,7 @@ application's kernel:: new Symfony\Bundle\AsseticBundle\AsseticBundle(), new JMS\SerializerBundle\JMSSerializerBundle($this), new FOS\RestBundle\FOSRestBundle(), - new Symfony\Cmf\Bundle\CreateBundle\SymfonyCmfCreateBundle(), + new Symfony\Cmf\Bundle\CreateBundle\CmfCreateBundle(), // ... ); } @@ -126,7 +126,7 @@ In your application config file, define the editor base path: .. code-block:: yaml - symfony_cmf_create: + cmf_create: editor_base_path: /bundles/symfonycmfcreate/vendor/ckeditor/ .. code-block:: xml @@ -137,7 +137,7 @@ In your application config file, define the editor base path: .. code-block:: php - $container->loadFromExtension('symfony_cmf_create', array( + $container->loadFromExtension('cmf_create', array( 'editor_base_path': '/bundles/symfonycmfcreate/vendor/ckeditor/', )); @@ -146,7 +146,7 @@ In your template, load the javascript files using: .. code-block:: jinja {% render controller( - "symfony_cmf_create.jsloader.controller:includeJSFilesAction", + "cmf_create.jsloader.controller:includeJSFilesAction", {"editor": "ckeditor"} %} @@ -193,7 +193,7 @@ Configuration .. code-block:: yaml # app/config/config.yml - symfony_cmf_create: + cmf_create: # metadata loading # directory list to look for metadata @@ -274,7 +274,7 @@ PHPCR-ODM repository and also serves them in requests. If you need different image handling, you can either overwrite ``image.model_class`` and/or ``image.controller_class``, or implement a custom -``ImageController`` and override the ``symfony_cmf_create.image.controller`` +``ImageController`` and override the ``cmf_create.image.controller`` service with it. Mapping Requests to Objects @@ -282,7 +282,7 @@ Mapping Requests to Objects For now, the bundle only provides a service to map to doctrine PHPCR-ODM. Enable it by setting ``phpcr_odm`` to true. If you need something else, you need -to provide a service ``symfony_cmf_create.object_mapper``. (If you need a +to provide a service ``cmf_create.object_mapper``. (If you need a wrapper for doctrine ORM, look at the mappers in the createphp library and do a pull request on that library, and another one to expose the ORM mapper as service in the create bundle). @@ -306,15 +306,15 @@ Finally add the relevant routing to your configuration .. code-block:: yaml create: - resource: "@SymfonyCmfCreateBundle/Resources/config/routing/rest.xml" + resource: "@CmfCreateBundle/Resources/config/routing/rest.xml" create_image: - resource: "@SymfonyCmfCreateBundle/Resources/config/routing/image.xml" + resource: "@CmfCreateBundle/Resources/config/routing/image.xml" .. code-block:: xml - - .. _bundle-create-usage-embed: @@ -329,20 +329,20 @@ If you are using Symfony 2.2 or higher: .. code-block:: jinja - {% render controller("symfony_cmf_create.jsloader.controller:includeJSFilesAction", {'_locale': app.request.locale}) %} + {% render controller("cmf_create.jsloader.controller:includeJSFilesAction", {'_locale': app.request.locale}) %} For versions prior to 2.2, this will do: .. code-block:: jinja - {% render "symfony_cmf_create.jsloader.controller:includeJSFilesAction" with {'_locale': app.request.locale} %} + {% render "cmf_create.jsloader.controller:includeJSFilesAction" with {'_locale': app.request.locale} %} Plus make sure that assetic is rewriting paths in your css files, then include the base css files (and customize with your css as needed) with .. code-block:: jinja - {% include "SymfonyCmfCreateBundle::includecssfiles.html.twig" %} + {% include "CmfCreateBundle::includecssfiles.html.twig" %} The other thing you have to do is provide RDFa mappings for your model classes and adjust your templates to render with createphp so that create.js knows @@ -379,14 +379,14 @@ Alternative Editors You can write your own templates to load a javascript editor. They have to follow the naming pattern -``SymfonyCmfCreateBundle::includejsfiles-%editor%.html.twig`` to be loaded. In +``CmfCreateBundle::includejsfiles-%editor%.html.twig`` to be loaded. In the includeJSFilesAction, you specify the editor parameter. (Do not forget to add the ``controller`` call around the controller name inside ``render`` for Symfony 2.2, as in the example above.) .. code-block:: jinja - {% render "symfony_cmf_create.jsloader.controller:includeJSFilesAction" with {'editor': 'aloha', '_locale': app.request.locale } %} + {% render "cmf_create.jsloader.controller:includeJSFilesAction" with {'editor': 'aloha', '_locale': app.request.locale } %} .. note:: @@ -416,7 +416,7 @@ forget to add the ``controller`` call around the controller name inside .. code-block:: jinja - {% render "symfony_cmf_create.jsloader.controller:includeJSFilesAction" with {'editor': 'hallo-coffee', '_locale': app.request.locale } %} + {% render "cmf_create.jsloader.controller:includeJSFilesAction" with {'editor': 'hallo-coffee', '_locale': app.request.locale } %} The hallo-coffee template uses assetic to load the coffee script files from ``Resources/public/vendor/hallo/src``, rather than the precompiled javascript diff --git a/bundles/menu.rst b/bundles/menu.rst index 95f0181f..c9e43ada 100644 --- a/bundles/menu.rst +++ b/bundles/menu.rst @@ -15,7 +15,7 @@ Unless you change defaults and provide your own implementations, this bundle also depends on * ``SymfonyRoutingBundle`` for the router service - ``symfony_cmf_routing.dynamic_router``. Note that you need to explicitly + ``cmf_routing.dynamic_router``. Note that you need to explicitly enable the dynamic router as per default it is not loaded. See the :doc:`documentation of the cmf routing bundle ` for how to do this. * :doc:`PHPCR-ODM ` to load route documents from the content repository @@ -30,14 +30,14 @@ The values are: .. code-block:: yaml - symfony_cmf_menu: + cmf_menu: menu_basepath: /cms/menu document_manager_name: default admin_class: ~ document_class: ~ content_url_generator: router route_name: ~ # cmf routes are created by content instead of name - content_basepath: ~ # defaults to symfony_cmf_core.content_basepath + content_basepath: ~ # defaults to cmf_core.content_basepath voters: uri_prefix: false # enable the UriPrefixVoter for current menu item content_identity: not set # enable the RequestContentIdentityVoter @@ -166,7 +166,7 @@ attribute in the request is configurable with the ``content_key`` option - if not set it defaults to the constant ``DynamicRouter::CONTENT_KEY``. You can enable this voter by setting -``symfony_cmf_menu.voters.content_identity`` to ``~`` in your config.yml to +``cmf_menu.voters.content_identity`` to ``~`` in your config.yml to use a custom ``content_key`` for the main content attribute name, set it explicitly: @@ -174,7 +174,7 @@ explicitly: .. code-block:: yaml - symfony_cmf_menu: + cmf_menu: voters: content_identity: content_key: myKey @@ -194,7 +194,7 @@ explicitly: .. code-block:: php - $container->loadFromExtension('symfony_cmf_menu', array( + $container->loadFromExtension('cmf_menu', array( 'voters' => array( 'content_identity' => array( 'content_key' => 'myKey', @@ -212,7 +212,7 @@ allows you to make a whole sub-path of your site trigger the same menu item as current, but you need to configure the prefix option on your route documents. To enable the prefix voter, set the configuration key -``symfony_cmf_menu.voters.uri_prefix: ~``. +``cmf_menu.voters.uri_prefix: ~``. RequestParentContentIdentityVoter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -226,7 +226,7 @@ entry to be highlighted. To use this voter you need to configure a custom service with the name of the content in the request and your model class to avoid calling getParent on objects that do not have that method. You need to tag the service as -``symfony_cmf_menu.voter`` and also as ``cmf_request_aware`` because it +``cmf_menu.voter`` and also as ``cmf_request_aware`` because it depends on the request. The service looks the same as for complete custom voters (see below), except you do not need to write your own PHP code: @@ -241,7 +241,7 @@ voters (see below), except you do not need to write your own PHP code: - mainContent - %my_bundle.my_model_class% tags: - - { name: "symfony_cmf_menu.voter" } + - { name: "cmf_menu.voter" } - { name: "cmf_request_aware" } .. code-block:: xml @@ -250,7 +250,7 @@ voters (see below), except you do not need to write your own PHP code: class="Symfony\Cmf\Bundle\MenuBundle\Voter\RequestParentContentIdentityVoter"> mainContent %my_bundle.my_model_class% - + @@ -260,7 +260,7 @@ voters (see below), except you do not need to write your own PHP code: 'Symfony\Cmf\Bundle\MenuBundle\Voter\RequestParentContentIdentityVoter', array('mainContent', '%my_bundle.my_model_class%') )); - $definition->addTag('symfony_cmf_menu.voter'); + $definition->addTag('cmf_menu.voter'); $definition->addTag('cmf_request_aware'); $container->setDefinition('my_bundle.menu_voter.parent', $definition); @@ -269,7 +269,7 @@ Custom Voter ~~~~~~~~~~~~ Voters must implement the ``Symfony\Cmf\MenuBundle\Voter\VoterInterface``. To -make the menu bundle notice the voter, tag it with ``symfony_cmf_menu.voter``. +make the menu bundle notice the voter, tag it with ``cmf_menu.voter``. If the voter needs the request, add the tag ``cmf_request_aware`` to have a listener calling ``setRequest`` on the voter before it votes for the first time. diff --git a/bundles/phpcr_odm.rst b/bundles/phpcr_odm.rst index 1dd40bcc..c4dcfed0 100644 --- a/bundles/phpcr_odm.rst +++ b/bundles/phpcr_odm.rst @@ -375,9 +375,9 @@ A full example looks as follows: session: default mappings: SandboxMainBundle: ~ - SymfonyCmfContentBundle: ~ - SymfonyCmfMenuBundle: ~ - SymfonyCmfRoutingBundle: ~ + CmfContentBundle: ~ + CmfMenuBundle: ~ + CmfRoutingBundle: ~ website: session: website diff --git a/bundles/routing.rst b/bundles/routing.rst index 11011cda..d2ebd8dc 100644 --- a/bundles/routing.rst +++ b/bundles/routing.rst @@ -56,16 +56,16 @@ earlier this router service is asked to match a route or to generate a url .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: chain: routers_by_id: # enable the DynamicRouter with high priority to allow overwriting configured routes with content - symfony_cmf_routing.dynamic_router: 200 + cmf_routing.dynamic_router: 200 # enable the symfony default router with a lower priority router.default: 100 # whether the chain router should replace the default router. defaults to true # if you set this to false, the router is just available as service - # symfony_cmf_routing.router and you need to do something to trigger it + # cmf_routing.router and you need to do something to trigger it # replace_symfony_router: true Loading Routers with Tagging @@ -117,7 +117,7 @@ handle the request, to avoid hard coding controller names into your route documents. The minimum configuration required to load the dynamic router as service -``symfony_cmf_routing.dynamic_router`` is to have ``enabled: true`` in your +``cmf_routing.dynamic_router`` is to have ``enabled: true`` in your config.yml (the router is automatically enabled as soon as you add any other configuration to the `dynamic` entry). Without enabling it, the dynamic router service will not be loaded at all, allowing you to use the ChainRouter with @@ -128,7 +128,7 @@ your own routers .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: dynamic: enabled: true @@ -194,15 +194,15 @@ The possible enhancements are (in order of precedence): .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: dynamic: - generic_controller: symfony_cmf_content.controller:indexAction + generic_controller: cmf_content.controller:indexAction controllers_by_type: editablestatic: sandbox_main.controller:indexAction controllers_by_class: - Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: symfony_cmf_content.controller:indexAction + Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: cmf_content.controller:indexAction templates_by_class: - Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: SymfonyCmfContentBundle:StaticContent:index.html.twig + Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: CmfContentBundle:StaticContent:index.html.twig # the route provider is responsible for loading routes. manager_registry: doctrine_phpcr @@ -328,9 +328,9 @@ to point to the root of your content documents. .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: use_sonata_admin: auto # use true/false to force using / not using sonata admin - content_basepath: ~ # used with sonata admin to manage content, defaults to symfony_cmf_core.content_basepath + content_basepath: ~ # used with sonata admin to manage content, defaults to cmf_core.content_basepath Form Type @@ -338,10 +338,10 @@ Form Type The bundle defines a form type that can be used for classical "accept terms" checkboxes where you place urls in the label. Simply specify -``symfony_cmf_routing_terms_form_type`` as the form type name and specify a +``cmf_routing_terms_form_type`` as the form type name and specify a label and an array with ``content_ids`` in the options:: - $form->add('terms', 'symfony_cmf_routing_terms_form_type', array( + $form->add('terms', 'cmf_routing_terms_form_type', array( 'label' => 'I have seen the Team and More pages ...', 'content_ids' => array('%team%' => '/cms/content/static/team', '%more%' => '/cms/content/static/more') )); @@ -367,9 +367,9 @@ Notes: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: controllers_by_class: - Symfony\Cmf\Component\Routing\RedirectRouteInterface: symfony_cmf_routing.redirect_controller:redirectAction + Symfony\Cmf\Component\Routing\RedirectRouteInterface: cmf_routing.redirect_controller:redirectAction .. _bundle-routing-customize: diff --git a/bundles/routing_auto.rst b/bundles/routing_auto.rst index 37107452..8cd89e5d 100644 --- a/bundles/routing_auto.rst +++ b/bundles/routing_auto.rst @@ -89,7 +89,7 @@ The configuration for the example above could be as follows: .. code-block:: yaml - symfony_cmf_routing_auto: + cmf_routing_auto: auto_route_mapping: My\Namespace\Bundle\BlogBundle\Document\Post: @@ -396,7 +396,7 @@ the route stack. For example, the following provider will add the path } To use the path provider you must register it in the **DIC** and add the -``symfony_cmf_routing_auto.provider`` tag and set the **alias** accordingly. +``cmf_routing_auto.provider`` tag and set the **alias** accordingly. .. configuration-block:: @@ -407,7 +407,7 @@ To use the path provider you must register it in the **DIC** and add the class="FoobarProvider" scope="prototype" > - + .. code-block:: yaml @@ -416,14 +416,14 @@ To use the path provider you must register it in the **DIC** and add the class: "FoobarProvider" scope: prototype tags: - - { name: symfony_cmf_routing_auto.provider, alias: "foobar"} + - { name: cmf_routing_auto.provider, alias: "foobar"} .. code-block:: php use Symfony\Component\DependencyInjection\Definition; $definition = new Definition('FooBarProvider'); - $definition->addTag('symfony_cmf_routing_auto.provider', array('alias' => 'foobar')); + $definition->addTag('cmf_routing_auto.provider', array('alias' => 'foobar')); $definition->setScope('prototype'); $container->setDefinition('my_cms.some_bundle.path_provider.foobar', $definition); @@ -480,23 +480,23 @@ It is registered in the DI configuration as follows: class="My\Cms\AutoRoute\PathNotExists\ThrowException" scope="prototype" > - + .. code-block:: yaml - symfony_cmf_routing_auto.not_exists_action.throw_exception + cmf_routing_auto.not_exists_action.throw_exception class: "My\Cms\AutoRoute\PathNotExists\ThrowException" scope: prototype tags: - - { name: symfony_cmf_routing_auto.provider, alias: "throw_exception"} + - { name: cmf_routing_auto.provider, alias: "throw_exception"} .. code-block:: php use Symfony\Component\DependencyInjection\Definition; $definition = new Definition('My\Cms\AutoRoute\PathNotExists\ThrowException'); - $definition->addTag('symfony_cmf_routing_auto.provider', array('alias' => 'throw_exception')); + $definition->addTag('cmf_routing_auto.provider', array('alias' => 'throw_exception')); $definition->setScope('prototype'); $container->setDefinition('my_cms.some_bundle.path_provider.throw_exception', $definition); @@ -505,6 +505,6 @@ Note the following: * **Scope**: Must *always* be set to *prototype*; * **Tag**: The tag registers the service with the auto routing system, it can be one of the following; - * ``symfony_cmf_routing_auto.exists.action`` - if the action is to be used when a path exists; - * ``symfony_cmf_routing_auto.not_exists.action`` - if the action is to be used when a path does not exist; + * ``cmf_routing_auto.exists.action`` - if the action is to be used when a path exists; + * ``cmf_routing_auto.not_exists.action`` - if the action is to be used when a path does not exist; * **Alias**: The alias of the tag is the name by which you will reference this action in the auto routing schema. diff --git a/bundles/search.rst b/bundles/search.rst index f57439e7..9b5f215c 100644 --- a/bundles/search.rst +++ b/bundles/search.rst @@ -14,14 +14,14 @@ Dependencies Configuration ------------- -The configuration key for this bundle is ``symfony_cmf_search`` +The configuration key for this bundle is ``cmf_search`` .. configuration-block:: .. code-block:: yaml # app/config/config.yml - symfony_cmf_search: + cmf_search: document_manager_name: default translation_strategy: child # can also be set to an empty string or attribute translation_strategy: attribute diff --git a/bundles/simple_cms.rst b/bundles/simple_cms.rst index f344768a..6b586eac 100644 --- a/bundles/simple_cms.rst +++ b/bundles/simple_cms.rst @@ -29,7 +29,7 @@ bundles. Configuration ------------- -The configuration key for this bundle is ``symfony_cmf_simple_cms`` +The configuration key for this bundle is ``cmf_simple_cms`` The ``use_menu`` option automatically enables a service to provide menus out of the simple cms if the MenuBundle is enabled. You can also explicitly @@ -49,18 +49,18 @@ See the section below for multilanguage support. .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: use_menu: auto # use true/false to force providing / not providing a menu use_sonata_admin: auto # use true/false to force using / not using sonata admin sonata_admin: sort: false # set to asc|desc to sort children by publication date document_class: Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page # controller to use to render documents with just custom template - generic_controller: symfony_cmf_content.controller:indexAction + generic_controller: cmf_content.controller:indexAction # where in the PHPCR tree to store the pages basepath: /cms/simple routing: - content_repository_id: symfony_cmf_routing.content_repository + content_repository_id: cmf_routing.content_repository controllers_by_class: # ... templates_by_class: @@ -78,7 +78,7 @@ See the section below for multilanguage support. .. code-block:: yaml - symfony_cmf_simple_cms: + cmf_simple_cms: use_sonata_admin: false Multi-language support @@ -166,7 +166,7 @@ configuration parameter to your own document class: .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: # ... document_class: Acme\DemoBundle\Document\MySuperPage # ... @@ -199,4 +199,4 @@ These properties can then be accessed in your controller or templates via the .. _`SimpleCmsBundle`: https://github.com/symfony-cmf/SimpleCmsBundle#readme .. _`Symfony CMF Standard Edition`: https://github.com/symfony-cmf/symfony-cmf-standard .. _`Getting started`: ../getting-started/simplecms -.. _`CMF website`: https://github.com/symfony-cmf/symfony-cmf-website/ +.. _`CMF website`: https://github.com/symfony-cmf/cmf-website/ diff --git a/bundles/tree_browser.rst b/bundles/tree_browser.rst index b5416742..5f778368 100644 --- a/bundles/tree_browser.rst +++ b/bundles/tree_browser.rst @@ -20,14 +20,14 @@ Dependencies Configuration ------------- -The configuration key for this bundle is ``symfony_cmf_tree_browser``: +The configuration key for this bundle is ``cmf_tree_browser``: .. configuration-block:: .. code-block:: yaml # app/config/config.yml - symfony_cmf_tree_browser: + cmf_tree_browser: session: default Routing @@ -42,9 +42,9 @@ configuration: .. code-block:: yaml # app/config/routing.yml - symfony_cmf_tree: + cmf_tree: resource: . - type: 'symfony_cmf_tree' + type: 'cmf_tree' Usage ----- @@ -238,8 +238,8 @@ configuration: fos_js_routing: routes_to_expose: - - symfony_cmf_tree_browser.phpcr_children - - symfony_cmf_tree_browser.phpcr_move + - cmf_tree_browser.phpcr_children + - cmf_tree_browser.phpcr_move - sonata.admin.doctrine_phpcr.phpcrodm_children - sonata.admin.doctrine_phpcr.phpcrodm_move - presta_cms_page_edit diff --git a/cookbook/using_a_custom_route_repository.rst b/cookbook/using_a_custom_route_repository.rst index 2fd30ba8..99b827f0 100644 --- a/cookbook/using_a_custom_route_repository.rst +++ b/cookbook/using_a_custom_route_repository.rst @@ -90,7 +90,7 @@ configuration as follows: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: dynamic: enabled: true route_provider_service_id: my_bundle.provider.endpoint @@ -114,7 +114,7 @@ configuration as follows: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( 'dynamic' => array( 'enabled' => true, 'route_provider_service_id' => 'my_bundle.provider.endpoint', diff --git a/getting_started/content.rst b/getting_started/content.rst index ec0dfa07..91315f54 100644 --- a/getting_started/content.rst +++ b/getting_started/content.rst @@ -1,5 +1,5 @@ .. index:: - single: Content, SymfonyCmfContentBundle + single: Content, CmfContentBundle Content ======= diff --git a/getting_started/menu.rst b/getting_started/menu.rst index 05de854c..a7b2bb74 100644 --- a/getting_started/menu.rst +++ b/getting_started/menu.rst @@ -1,5 +1,5 @@ .. index:: - single: Menu, SymfonyCmfMenuBundle + single: Menu, CmfMenuBundle Menu ==== @@ -70,7 +70,7 @@ render the menu ``simple``, the menu root node must be stored at .. code-block:: yaml - symfony_cmf_menu: + cmf_menu: menu_basepath: /cms/menu .. code-block:: xml @@ -86,7 +86,7 @@ render the menu ``simple``, the menu root node must be stored at .. code-block:: php - $container->loadFromExtension('symfony_cmf_menu', array( + $container->loadFromExtension('cmf_menu', array( 'menu_basepath' => '/cms/menu', )); diff --git a/getting_started/routing.rst b/getting_started/routing.rst index 06965adb..aab3a9ce 100644 --- a/getting_started/routing.rst +++ b/getting_started/routing.rst @@ -1,5 +1,5 @@ .. index:: - single: Routing, SymfonyCmfRoutingBundle + single: Routing, CmfRoutingBundle Routing ======= @@ -59,12 +59,12 @@ their configured priority: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: chain: routers_by_id: # enable the DynamicRouter with high priority to allow overwriting # configured routes with content - symfony_cmf_routing.dynamic_router: 200 + cmf_routing.dynamic_router: 200 # enable the symfony default router with a lower priority router.default: 100 @@ -83,7 +83,7 @@ their configured priority: + id="cmf_routing.dynamic_router"> 200 @@ -98,12 +98,12 @@ their configured priority: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( 'chain' => array( 'routers_by_id' => array( // enable the DynamicRouter with high priority to allow overwriting // configured routes with content - 'symfony_cmf_routing.dynamic_router' => 200, + 'cmf_routing.dynamic_router' => 200, // enable the symfony default router with a lower priority 'router.default' => 100, @@ -169,7 +169,7 @@ by default. To activate it, just add the following to your configuration file: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: dynamic: enabled: true @@ -190,7 +190,7 @@ by default. To activate it, just add the following to your configuration file: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( 'dynamic' => array( 'enabled' => true, ), @@ -266,15 +266,15 @@ Here's an example of how to configure the above mentioned options: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: dynamic: - generic_controller: symfony_cmf_content.controller:indexAction + generic_controller: cmf_content.controller:indexAction controllers_by_type: editablestatic: sandbox_main.controller:indexAction controllers_by_class: - Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: symfony_cmf_content.controller::indexAction + Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: cmf_content.controller::indexAction templates_by_class: - Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: SymfonyCmfContentBundle:StaticContent:index.html.twig + Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: CmfContentBundle:StaticContent:index.html.twig .. code-block:: xml @@ -286,7 +286,7 @@ Here's an example of how to configure the above mentioned options: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + sandbox_main.controller:indexAction @@ -294,12 +294,12 @@ Here's an example of how to configure the above mentioned options: - symfony_cmf_content.controller::indexAction + cmf_content.controller::indexAction - SymfonyCmfContentBundle:StaticContent:index.html.twig + CmfContentBundle:StaticContent:index.html.twig @@ -308,17 +308,17 @@ Here's an example of how to configure the above mentioned options: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( 'dynamic' => array( - 'generic_controller' => 'symfony_cmf_content.controller:indexAction', + 'generic_controller' => 'cmf_content.controller:indexAction', 'controllers_by_type' => array( 'editablestatic' => 'sandbox_main.controller:indexAction', ), 'controllers_by_class' => array( - 'Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent' => 'symfony_cmf_content.controller::indexAction', + 'Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent' => 'cmf_content.controller::indexAction', ), 'templates_by_class' => array( - 'Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent' => 'SymfonyCmfContentBundle:StaticContent:index.html.twig', + 'Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent' => 'CmfContentBundle:StaticContent:index.html.twig', ), ), )); @@ -368,9 +368,9 @@ configured as follows: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: controllers_by_class: - Symfony\Cmf\Component\Routing\RedirectRouteInterface: symfony_cmf_routing.redirect_controller:redirectAction + Symfony\Cmf\Component\Routing\RedirectRouteInterface: cmf_routing.redirect_controller:redirectAction .. code-block:: xml @@ -384,7 +384,7 @@ configured as follows: - symfony_cmf_routing.redirect_controller:redirectAction + cmf_routing.redirect_controller:redirectAction @@ -392,9 +392,9 @@ configured as follows: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( 'controllers_by_class' => array( - 'Symfony\Cmf\Component\Routing\RedirectRouteInterface' => 'symfony_cmf_routing.redirect_controller:redirectAction', + 'Symfony\Cmf\Component\Routing\RedirectRouteInterface' => 'cmf_routing.redirect_controller:redirectAction', ), )); @@ -480,11 +480,11 @@ There are a couple of configuration options for the admin. The .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: # use true/false to force using / not using sonata admin use_sonata_admin: auto - # used with Sonata Admin to manage content; defaults to symfony_cmf_core.content_basepath + # used with Sonata Admin to manage content; defaults to cmf_core.content_basepath content_basepath: ~ .. code-block:: xml @@ -497,7 +497,7 @@ There are a couple of configuration options for the admin. The xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + loadFromExtension('symfony_cmf_routing', array( + $container->loadFromExtension('cmf_routing', array( // use true/false to force using / not using sonata admin 'use_sonata_admin' => 'auto', - // used with Sonata Admin to manage content; defaults to symfony_cmf_core.content_basepath + // used with Sonata Admin to manage content; defaults to cmf_core.content_basepath 'content_basepath' => null, )); @@ -520,10 +520,10 @@ Terms Form Type The Routing bundle defines a form type that can be used for classical "accept terms" checkboxes where you place URLs in the label. Simply specify -``symfony_cmf_routing_terms_form_type`` as the form type name and +``cmf_routing_terms_form_type`` as the form type name and specify a label and an array with ``content_ids`` in the options:: - $form->add('terms', 'symfony_cmf_routing_terms_form_type', array( + $form->add('terms', 'cmf_routing_terms_form_type', array( 'label' => 'I have seen the Team and More pages ...', 'content_ids' => array( '%team%' => '/cms/content/static/team', diff --git a/getting_started/simplecms.rst b/getting_started/simplecms.rst index f2e701ca..65e472ce 100644 --- a/getting_started/simplecms.rst +++ b/getting_started/simplecms.rst @@ -1,5 +1,5 @@ .. index:: - single: SimpleCMS, SymfonyCmfSimpleCMSBundle + single: SimpleCMS, CmfSimpleCMSBundle SimpleCMS ========= @@ -97,7 +97,7 @@ using the configuration parameters: .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: # defaults to Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page or MultilangPage (see above) document_class: ~ multilang: @@ -127,7 +127,7 @@ using the configuration parameters: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_simple_cms', array( + $container->loadFromExtension('cmf_simple_cms', array( // defaults to Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page or MultilangPage (see above) 'document_class' => null, 'multilang' => array( @@ -200,8 +200,8 @@ do so. .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: - # defaults to symfony_cmf_content.controller:indexAction + cmf_simple_cms: + # defaults to cmf_content.controller:indexAction generic_controller: ~ .. code-block:: xml @@ -213,7 +213,7 @@ do so. xmlns:cmf-simple-cms="http://cmf.symfony.com/schema/dic/simplecms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + @@ -222,8 +222,8 @@ do so. .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_simple_cms', array( - // defaults to symfony_cmf_content.controller:indexAction + $container->loadFromExtension('cmf_simple_cms', array( + // defaults to cmf_content.controller:indexAction 'generic_controller' => null, )); @@ -240,12 +240,12 @@ type. Symfony CMF SE includes an example of both in its default configuration. .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: routing: templates_by_class: - Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page: SymfonyCmfSimpleCmsBundle:Page:index.html.twig + Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page: CmfSimpleCmsBundle:Page:index.html.twig controllers_by_class: - Symfony\Cmf\Bundle\RoutingBundle\Document\RedirectRoute: symfony_cmf_routing.redirect_controller:redirectAction + Symfony\Cmf\Bundle\RoutingBundle\Document\RedirectRoute: cmf_routing.redirect_controller:redirectAction .. code-block:: xml @@ -260,12 +260,12 @@ type. Symfony CMF SE includes an example of both in its default configuration. - SymfonyCmfSimpleCmsBundle:Page:index.html.twig + CmfSimpleCmsBundle:Page:index.html.twig - symfony_cmf_routing.redirect_controller:redirectAction + cmf_routing.redirect_controller:redirectAction @@ -274,11 +274,11 @@ type. Symfony CMF SE includes an example of both in its default configuration. .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_simple_cms', array( + $container->loadFromExtension('cmf_simple_cms', array( 'routing' => array( 'templates_by_class' => array( - 'Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page' => SymfonyCmfSimpleCmsBundle:Page:index.html.twig, - 'Symfony\Cmf\Bundle\RoutingBundle\Document\RedirectRoute' => 'symfony_cmf_routing.redirect_controller:redirectAction', + 'Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page' => CmfSimpleCmsBundle:Page:index.html.twig, + 'Symfony\Cmf\Bundle\RoutingBundle\Document\RedirectRoute' => 'cmf_routing.redirect_controller:redirectAction', ), ), )); @@ -315,7 +315,7 @@ documentation. This parameter is optional, and can be configured as follows: .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: # defaults to auto; true/false can be used to force providing/not providing a menu use_menu: ~ @@ -342,7 +342,7 @@ documentation. This parameter is optional, and can be configured as follows: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_simple_cms', array( + $container->loadFromExtension('cmf_simple_cms', array( // defaults to auto; true/false can be used to force providing/not providing a menu 'use_menu' => null, @@ -369,7 +369,7 @@ option: .. code-block:: yaml # app/config/config.yml - symfony_cmf_simple_cms: + cmf_simple_cms: # defaults to auto; true/false can be used to force using/not using SonataAdmin use_sonata_admin: ~ @@ -391,7 +391,7 @@ option: .. code-block:: php // app/config/config.php - $container->loadFromExtension('symfony_cmf_simple_cms', array( + $container->loadFromExtension('cmf_simple_cms', array( // defaults to auto; true/false can be used to force using/not using SonataAdmin 'use_sonata_admin' => null, )); diff --git a/tutorials/creating_cms_using_cmf_and_sonata.rst b/tutorials/creating_cms_using_cmf_and_sonata.rst index e852e63f..e62eee1a 100644 --- a/tutorials/creating_cms_using_cmf_and_sonata.rst +++ b/tutorials/creating_cms_using_cmf_and_sonata.rst @@ -47,7 +47,7 @@ Next, initialize the bundles in ``app/AppKernel.php`` by adding them to the // ... // support for the admin - new Symfony\Cmf\Bundle\TreeBrowserBundle\SymfonyCmfTreeBrowserBundle(), + new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(), new Sonata\jQueryBundle\SonatajQueryBundle(), new Sonata\BlockBundle\SonataBlockBundle(), new Sonata\AdminBundle\SonataAdminBundle(), @@ -131,9 +131,9 @@ Add route in to your routing configuration: fos_js_routing: resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml" - symfony_cmf_tree: + cmf_tree: resource: . - type: 'symfony_cmf_tree' + type: 'cmf_tree' The FOSJsRoutingBundle is used to export sonata routes to javascript, to be diff --git a/tutorials/installing_cmf_core.rst b/tutorials/installing_cmf_core.rst index 05a92592..b49dec37 100644 --- a/tutorials/installing_cmf_core.rst +++ b/tutorials/installing_cmf_core.rst @@ -58,16 +58,16 @@ Next, initialize the bundles in ``AppKernel.php`` by adding them to the $bundles = array( // ... - new Symfony\Cmf\Bundle\RoutingBundle\SymfonyCmfRoutingBundle(), - new Symfony\Cmf\Bundle\CoreBundle\SymfonyCmfCoreBundle(), - new Symfony\Cmf\Bundle\MenuBundle\SymfonyCmfMenuBundle(), - new Symfony\Cmf\Bundle\ContentBundle\SymfonyCmfContentBundle(), - new Symfony\Cmf\Bundle\BlockBundle\SymfonyCmfBlockBundle(), + new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(), + new Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(), + new Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(), + new Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(), + new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), - // Dependencies of the SymfonyCmfMenuBundle + // Dependencies of the CmfMenuBundle new Knp\Bundle\MenuBundle\KnpMenuBundle(), - // Dependencies of the SymfonyCmfBlockBundle + // Dependencies of the CmfBlockBundle new Sonata\BlockBundle\SonataBlockBundle(), ); @@ -117,10 +117,10 @@ which by default is not loaded, you will need to enable it as follows: .. code-block:: yaml # app/config/config.yml - symfony_cmf_routing: + cmf_routing: chain: routers_by_id: - symfony_cmf_routing.dynamic_router: 200 + cmf_routing.dynamic_router: 200 router.default: 100 dynamic: enabled: true diff --git a/tutorials/installing_configuring_inline_editing.rst b/tutorials/installing_configuring_inline_editing.rst index 32dcb07f..77ac993d 100644 --- a/tutorials/installing_configuring_inline_editing.rst +++ b/tutorials/installing_configuring_inline_editing.rst @@ -60,7 +60,7 @@ Next, initialize the bundles in the ``AppKernel`` by adding them to the $bundles = array( // ... - new Symfony\Cmf\Bundle\CreateBundle\SymfonyCmfCreateBundle(), + new Symfony\Cmf\Bundle\CreateBundle\CmfCreateBundle(), new FOS\RestBundle\FOSRestBundle(), new JMS\SerializerBundle\JMSSerializerBundle($this), ); @@ -79,7 +79,7 @@ Basic configuration, add to your application configuration: .. code-block:: yaml # app/config/config.yml - symfony_cmf_create: + cmf_create: phpcr_odm: true map: '': 'Symfony\Cmf\Bundle\MultilangContentBundle\Document\MultilangStaticContent' diff --git a/tutorials/using_blockbundle_and_contentbundle.rst b/tutorials/using_blockbundle_and_contentbundle.rst index 6f5d4fac..767de743 100644 --- a/tutorials/using_blockbundle_and_contentbundle.rst +++ b/tutorials/using_blockbundle_and_contentbundle.rst @@ -161,7 +161,7 @@ Add the following lines to ``AppKernel``:: $bundles = array( // ... new Sonata\BlockBundle\SonataBlockBundle(), - new Symfony\Cmf\Bundle\BlockBundle\SymfonyCmfBlockBundle(), + new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), ); // ... @@ -350,7 +350,7 @@ Add the following line to ``AppKernel``: { $bundles = array( // ... - new Symfony\Cmf\Bundle\ContentBundle\SymfonyCmfContentBundle(), + new Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(), ); // ... @@ -377,7 +377,7 @@ sample block, so create the ``LoadBlockWithCmfParent.php`` class:: { // Get the base path name to use from the configuration $session = $manager->getPhpcrSession(); - $basepath = $this->container->getParameter('symfony_cmf_content.static_basepath'); + $basepath = $this->container->getParameter('cmf_content.static_basepath'); // Create the path in the repository NodeHelper::createPath($session, $basepath); @@ -418,7 +418,7 @@ your ``config.yml``: .. code-block:: yaml # app/config/config.yml - symfony_cmf_content: + cmf_content: static_basepath: /content Now it should be possible to load in the above fixtures: @@ -509,7 +509,7 @@ This happens when a block is rendered, see the .. index:: BlockBundle for more d Embedding Blocks in WYSIWYG Content ----------------------------------- -The SymfonyCmfBlockBundle provides a twig filter ``cmf_embed_blocks`` that +The CmfBlockBundle provides a twig filter ``cmf_embed_blocks`` that looks through the content and looks for special tags to render blocks. To use the tag, you need to apply the ``cmf_embed_blocks`` filter to your output. If you can, render your blocks directly in the template. This feature is only a @@ -538,7 +538,7 @@ You can change the prefix and postfix (the parts ``%block:`` and .. code-block:: yaml # app/config/config.yml - symfony_cmf_block: + cmf_block: twig: cmf_embed_blocks: prefix: %%%block: @@ -659,7 +659,7 @@ SimpleBlock class not found Make sure the CMF BlockBundle is installed and loaded in ``app/AppKernel.php``:: - new Symfony\Cmf\Bundle\BlockBundle\SymfonyCmfBlockBundle(), + new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), RouteAwareInterface not found ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~