Skip to content

Commit 65705c8

Browse files
committed
text refactorings, CS fix
1 parent 95ff33f commit 65705c8

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"symfony-cmf/simple-cms-bundle": "1.1.*",
2828
"symfony-cmf/search-bundle": "1.1.*",
2929
"symfony-cmf/create-bundle": "1.1.*",
30-
"symfony-cmf/seo-bundle":"~1.0.0",
30+
"symfony-cmf/seo-bundle":"1.0.*",
3131
"jackalope/jackalope-doctrine-dbal": "1.1.*",
3232
"jackalope/jackalope-jackrabbit": "1.1.*",
3333
"doctrine/doctrine-bundle": "1.2.*",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Sandbox/MainBundle/DataFixtures/PHPCR/LoadStaticPageData.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,19 @@ public function load(ObjectManager $manager)
7878
$seoDemo->setTitle('Simple seo example');
7979
$seoDemo->setBody(
8080
'<p>
81-
Just implementing the SeoAwareInterface will give the chance to add the SeoMetadata
82-
(page $title. description, keywords and original url) to the document. When using
83-
sonatas admin bundle will extend your form by adding a form type to insert that values.
84-
For more special use you can use the extractors.
81+
When implementing the SeoAwareInterface,
82+
you get a chance to configure SEO data
83+
(title, description, keywords and original url)
84+
of the document.
85+
The SonataAdminBundle integration allows admins to update this data.
8586
</p>'
8687
);
8788
$seoDemo->setParentDocument($parent);
8889

8990
$seoMetadata = new SeoMetadata();
9091
$seoMetadata->setTitle('Simple seo example');
9192
$seoMetadata->setOriginalUrl('/home');
92-
$seoMetadata->setMetaDescription('This is a simple example for a seo aware document in sandbox');
93+
$seoMetadata->setMetaDescription('This is a simple example of an seo aware document in the sandbox.');
9394
$seoMetadata->setMetaKeywords('Seo');
9495
$seoDemo->setSeoMetadata($seoMetadata);
9596
$manager->persist($seoDemo);

src/Sandbox/MainBundle/Document/DemoSeoExtractor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoOriginalUrlReadInterface;
99
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoTitleReadInterface;
1010

11-
1211
/**
1312
* That example class uses the extractors for the creation of the SeoMetadata.
1413
*

src/Sandbox/MainBundle/Resources/data/page.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,10 @@ static:
174174
fr: Demo - Seo extractors
175175
body:
176176
en: |
177-
This Example extracts its SeoMetada directly from the document. Extractors for title, description
178-
and original url gerenerates the values for the page title, the description for metadata and the absolute url for
179-
redirect/canonical link.
177+
This example uses extractors to get the SeoMetadata.
178+
Extractor try to extract the title, description, keywords and
179+
original url from the document.
180180
fr: |
181181
Needs to be translated:
182-
This Example extracts its SeoMetada directly from the document. Extractors for title, description
183-
and original url gerenerates the values for the page title, the description for metadata and the absolute url for
184-
redirect/canonical link.
182+
This example uses extractors to get the SeoMetadata.
183+
Extractor try to extract the title, description, keywords and original url from the document.

0 commit comments

Comments
 (0)