Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 00bd671

Browse files
committed
Merge pull request #486 from symfony-cmf/consistency
Consistency
2 parents dadd119 + d504ac6 commit 00bd671

25 files changed

+184
-184
lines changed

bundles/block/create_your_own_blocks.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Form Configuration
254254
~~~~~~~~~~~~~~~~~~
255255

256256
The methods ``buildEditForm`` and ``buildCreateForm`` specify how to build the
257-
the forms for editing using a frontend or backend UI. The method
257+
the forms for editing using a front-end or backend UI. The method
258258
``validateBlock`` contains the validation configuration. This is not used in
259259
the CMF and it is recommended to instead build forms or Sonata admin classes
260260
that can handle the block documents.
@@ -270,7 +270,7 @@ JavaScripts and Stylesheets
270270

271271
The methods ``getJavaScripts`` and ``getStylesheets`` of the service class
272272
define the JavaScript and Stylesheet files needed by a block. There is a
273-
twig function and a templating helper to render all links for all blocks used
273+
Twig function and a templating helper to render all links for all blocks used
274274
on the current page:
275275

276276
.. configuration-block::

bundles/block/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Block Context
189189

190190
The BlockContext contains all information and the block document needed to
191191
render the block. It aggregates and merges all settings from configuration,
192-
the block service, the block document and settings passed to the twig template
192+
the block service, the block document and settings passed to the Twig template
193193
helper. Therefore, use the BlockContext to get or alter a setting if needed.
194194

195195
.. _bundle-block-service:
@@ -210,7 +210,7 @@ service. It is only relevant when
210210
Block rendering
211211
---------------
212212

213-
Rendering is handled by the SonataBlockBundle ``sonata_block_render`` twig
213+
Rendering is handled by the SonataBlockBundle ``sonata_block_render`` Twig
214214
function. The block name is either an absolute PHPCR path or the name of the
215215
block relative to the ``cmfMainContent`` document.
216216

@@ -269,7 +269,7 @@ response object - typically by rendering a Twig template.
269269
Embedding Blocks in WYSIWYG Content
270270
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
271271

272-
The CmfBlockBundle provides a twig filter ``cmf_embed_blocks`` that
272+
The CmfBlockBundle provides a Twig filter ``cmf_embed_blocks`` that
273273
looks through the content and looks for special tags to render blocks. To use
274274
the tag, you need to apply the ``cmf_embed_blocks`` filter to your output. If
275275
you can, render your blocks directly in the template. This feature is only a
@@ -294,7 +294,7 @@ might be a CMF bundle at some point for this).
294294
Make sure to only place this filter where you display the content and not
295295
where editing it, as otherwise your users would start to edit the rendered
296296
output of their blocks.
297-
This feature conflicts with the frontend editing provided by CreateBundle,
297+
This feature conflicts with the front-end editing provided by CreateBundle,
298298
as create.js operates on the rendered content as displayed to the user.
299299
There is an ongoing `discussion how to fix this`_.
300300

bundles/block/types.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ SimpleBlock
106106
-----------
107107

108108
Just a text block with a ``title`` and a ``body``. The default template
109-
renders both title and body with the twig ``raw`` filter, meaning HTML is
109+
renders both title and body with the Twig ``raw`` filter, meaning HTML is
110110
allowed in those fields.
111111

112112
This block is useful to edit static text fragments and for example display
@@ -356,11 +356,11 @@ a ``SlideshowBlock`` object, you can render it with:
356356
'name' => 'slideshow',
357357
)) ?>
358358

359-
Make the slideshow work in the frontend
360-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
359+
Make the Slideshow Work in the Front-End
360+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
361361

362362
Since the BlockBundle doesn't contain anything to make the slideshow work
363-
in the frontend, you need to do this yourself. Use your favourite JavaScript
363+
in the front-end, you need to do this yourself. Use your favourite JavaScript
364364
library to make the slideshow interactive. If special markup is needed for
365365
your slideshow code to work, you can override
366366
``BlockBundle:Block:block_slideshow.html.twig`` and/or the templates of the

bundles/blog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Example:
5050
5151
# app/config.yml
5252
cmf_blog:
53-
use_sonata_admin: auto
54-
blog_basepath: /cms/blog
53+
use_sonata_admin: auto
54+
blog_basepath: /cms/blog
5555
class:
5656
blog_admin: Symfony\Cmf\Bundle\BlogBundle\Admin\BlogAdmin # Optional
5757
post_admin: Symfony\Cmf\Bundle\BlogBundle\Admin\PostAdmin # Optional

bundles/core/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ additionally specify ``content_ids``, which are understood by the
2323
));
2424

2525
The form type automatically generates the routes for the specified content and
26-
passes the routes to the ``trans`` twig helper for replacement in the label.
26+
passes the routes to the ``trans`` Twig helper for replacement in the label.

bundles/core/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ One of the provided features is an interface and implementation of a publish
1111
workflow checker with an accompanying interface that models can implement if
1212
they want to support this checker.
1313

14-
Furthermore, it provides a twig helper exposing several useful functions for
15-
twig templates to interact with PHPCR-ODM documents.
14+
Furthermore, it provides a Twig helper exposing several useful functions for
15+
Twig templates to interact with PHPCR-ODM documents.
1616

1717
Finally, most of its configuration settings are automatically applied as
1818
defaults for most of the other CMF Bundles.

bundles/core/persistence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ enforce a single translation strategy for all documents:
6767
cmf_core:
6868
persistence:
6969
phpcr:
70-
translation_strategy: attribute
70+
translation_strategy: attribute
7171
7272
.. code-block:: xml
7373

bundles/core/publish_workflow.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ place and the security context thus has no token (see `Symfony2 Authorization`_)
1212
The publish workflow is also tied into the security workflow: The CoreBundle
1313
registers a security voter that forwards security checks to the publish
1414
workflow. This means that if you always have a firewall, you can just use
15-
the normal security context and the twig function ``is_granted`` to check for
15+
the normal security context and the Twig function ``is_granted`` to check for
1616
publication.
1717

1818
.. tip::
@@ -60,7 +60,7 @@ given to editors. The default name of the role is ``ROLE_CAN_VIEW_NON_PUBLISHED`
6060
# app/config/security.yml
6161
security:
6262
role_hierarchy:
63-
ROLE_EDITOR: ROLE_CAN_VIEW_NON_PUBLISHED
63+
ROLE_EDITOR: ROLE_CAN_VIEW_NON_PUBLISHED
6464
6565
.. code-block:: xml
6666
@@ -112,7 +112,7 @@ the path in question - they will have the permission to view unpublished content
112112

113113
.. _bundle-core-publish-workflow-twig_function:
114114

115-
To check publication in a template, use the twig function ``cmf_is_published``
115+
To check publication in a template, use the Twig function ``cmf_is_published``
116116
or the ``$view['cmf']->isPublished`` method:
117117

118118
.. configuration-block::

bundles/create/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ creating `RDFa`_ attributes on your data in the templates. It also maps
5353
the JSON-LD sent by backbone.js back to your domain objects.
5454

5555
The `CreatePHP`_ library contains a metadata tool to define the mapping between
56-
your domain objects and the RDF information. It provides a twig extension to
56+
your domain objects and the RDF information. It provides a Twig extension to
5757
enrich your HTML pages with the RDFa attributes, similar to how you output forms.
5858
CreatePHP also provides the means to store the JSON-LD data sent by backbone.js
5959
back into your domain objects and save them. If you know Doctrine, this is a
6060
similar job to how Doctrine reads data from database columns and loads them
6161
into your domain objects.
6262

63-
The CreateBundle finally registers the twig extension in Symfony and provides
63+
The CreateBundle finally registers the Twig extension in Symfony and provides
6464
a REST controller for the backbone.js ajax calls. It also provides helpers to
6565
bootstrap create.js in your templates.
6666

@@ -386,7 +386,7 @@ you need to adjust your templates to output that information.
386386
the remainder of this page to learn how to define the mappings.
387387

388388
To render your data named ``cmfMainContent`` with a handle you call ``rdf``, use the
389-
``createphp`` twig tag as follows:
389+
``createphp`` Twig tag as follows:
390390

391391
.. code-block:: html+jinja
392392

bundles/phpcr_odm/introduction.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ with the DoctrineBundle. For detailed information, see the
7676
7777
# app/config/parameters.yml
7878
parameters:
79-
database_driver: pdo_mysql
80-
database_host: localhost
81-
database_name: test_project
82-
database_user: root
83-
database_password: password
79+
database_driver: pdo_mysql
80+
database_host: localhost
81+
database_name: test_project
82+
database_user: root
83+
database_password: password
8484
8585
# ...
8686

0 commit comments

Comments
 (0)