This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from symfony-cmf/revert_translateable
revert adding TranslatableInterface to AbstractBlock
- Loading branch information
Showing
6 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,12 @@ | |
|
||
namespace Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr; | ||
|
||
use Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface; | ||
|
||
/** | ||
* Block that contains hypertext and a title | ||
*/ | ||
class SimpleBlock extends AbstractBlock | ||
class SimpleBlock extends AbstractBlock implements TranslatableInterface | ||
{ | ||
/** | ||
* @var string | ||
|
@@ -17,6 +19,11 @@ class SimpleBlock extends AbstractBlock | |
*/ | ||
protected $body; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lsmith77
Author
Member
|
||
protected $locale; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i think the base class is already providing this field (as it is the getter and setter we are using). the idea was that the base class provides the infrastructure even though it does not implement the interface itself, to avoid the copy paste. i can live with saying we do not want this mixup and copy the locale things into each block, but then we should be consistent and have field and methods both.