Skip to content

Commit

Permalink
In order to prevent blocks to extend from cms blocks, flag all cms
Browse files Browse the repository at this point in the history
blocks as final. closes #1109
  • Loading branch information
nadar committed Dec 19, 2016
1 parent 6fb4f66 commit 8f9b9e3
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The changelog contains informations about bug fixes, new features or bc breaking

- [#1102](https://github.com/luyadev/luya/issues/1102) Removed News Module Tag table and replace by admin modules Tag models.
- [#1098](https://github.com/luyadev/luya/issues/1098) Changed luya\base\Widget view path behavior to default implementation with option to enable app view paths lookup.
- [#1109](https://github.com/luyadev/luya/issues/1109) In order to prevent blocks to extend from cms blocks, flag all cms blocks as final.

### Added

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/AudioBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class AudioBlock extends TwigBlock
final class AudioBlock extends TwigBlock
{
/**
* @inheritDoc
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/DevBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class DevBlock extends TwigBlock
final class DevBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/FileListBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class FileListBlock extends TwigBlock
final class FileListBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/FormBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @author Basil Suter <basil@nadar.io>
*
*/
class FormBlock extends TwigBlock
final class FormBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/HtmlBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class HtmlBlock extends TwigBlock
final class HtmlBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/ImageBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class ImageBlock extends TwigBlock
final class ImageBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/ImageTextBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class ImageTextBlock extends TwigBlock
final class ImageTextBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/LayoutBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class LayoutBlock extends TwigBlock
final class LayoutBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/LineBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class LineBlock extends TwigBlock
final class LineBlock extends TwigBlock
{
public $cacheEnabled = true;

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/LinkButtonBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class LinkButtonBlock extends TwigBlock
final class LinkButtonBlock extends TwigBlock
{
public $cacheEnabled = true;

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/ListBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class ListBlock extends TwigBlock
final class ListBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/MapBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class MapBlock extends TwigBlock
final class MapBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/ModuleBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class ModuleBlock extends TwigBlock
final class ModuleBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/QuoteBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class QuoteBlock extends TwigBlock
final class QuoteBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/SpacingBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class SpacingBlock extends TwigBlock
final class SpacingBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/TableBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class TableBlock extends TwigBlock
final class TableBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/TextBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class TextBlock extends TwigBlock
final class TextBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/TitleBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class TitleBlock extends TwigBlock
final class TitleBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/VideoBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class VideoBlock extends TwigBlock
final class VideoBlock extends TwigBlock
{
public $module = 'cms';

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/frontend/blocks/WysiwygBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Basil Suter <basil@nadar.io>
*/
class WysiwygBlock extends TwigBlock
final class WysiwygBlock extends TwigBlock
{
/**
* @inheritDoc
Expand Down

0 comments on commit 8f9b9e3

Please sign in to comment.