Skip to content

Commit f5e481a

Browse files
committed
add key extractor, fix test
1 parent 2ead2dc commit f5e481a

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

app/tests/AdminTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class AdminTest extends WebTestCase
1010
protected $router;
1111

1212
protected $verifiablePatterns = array(
13-
'/cmf/content/staticcontent/list',
14-
'/cmf/content/staticcontent/create',
15-
'/cmf/content/staticcontent/{id}/edit',
16-
'/cmf/content/staticcontent/{id}/delete',
13+
'/cmf/content/demoseocontent/list',
14+
'/cmf/content/demoseocontent/create',
15+
'/cmf/content/demoseocontent/{id}/edit',
16+
'/cmf/content/demoseocontent/{id}/delete',
1717
'/cmf/block/simpleblock/list',
1818
'/cmf/block/simpleblock/create',
1919
'/cmf/block/simpleblock/{id}/edit',

src/Sandbox/MainBundle/Document/DemoSeoExtractor.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
66
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoDescriptionReadInterface;
7+
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoKeywordsReadInterface;
78
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoOriginalUrlReadInterface;
89
use Symfony\Cmf\Bundle\SeoBundle\Extractor\SeoTitleReadInterface;
910

@@ -18,7 +19,8 @@
1819
class DemoSeoExtractor extends DemoSeoContent implements
1920
SeoTitleReadInterface,
2021
SeoDescriptionReadInterface,
21-
SeoOriginalUrlReadInterface
22+
SeoOriginalUrlReadInterface,
23+
SeoKeywordsReadInterface
2224
{
2325
/**
2426
* {@inheritDoc}
@@ -43,4 +45,12 @@ public function getSeoOriginalUrl()
4345
{
4446
return "/home";
4547
}
48+
49+
/**
50+
* {@inheritDoc}
51+
*/
52+
public function getSeoKeywords()
53+
{
54+
return $this->getTags();
55+
}
4656
}

0 commit comments

Comments
 (0)