Skip to content

Commit d61c5d0

Browse files
committed
Merge pull request #317 from symfony-cmf/remove_createjs
Temporary remove CmfCreateBundle from the sandbox
2 parents 6f67b33 + f72bf9e commit d61c5d0

File tree

10 files changed

+146
-289
lines changed

10 files changed

+146
-289
lines changed

app/AppKernel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ public function registerBundles()
4848
// language switcher
4949
new Lunetics\LocaleBundle\LuneticsLocaleBundle(),
5050

51-
// create.js editing related
52-
new Symfony\Cmf\Bundle\CreateBundle\CmfCreateBundle(),
51+
// API
5352
new FOS\RestBundle\FOSRestBundle(),
5453
new JMS\SerializerBundle\JMSSerializerBundle(),
5554

app/Resources/CmfSimpleCmsBundle/views/Page/index.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/simple_cms/introduction.html"><i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.</a>
88
</div>
99

10-
{% createphp cmfMainContent as="rdf" %}
11-
{{ rdf|raw }}
12-
{% endcreatephp %}
10+
<h1>{{ cmfMainContent.title }}</h1>
11+
{{ cmfMainContent.body|raw }}
1312
{% endblock %}

app/Resources/views/base.html.twig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
{% block includes %}
1313
<link rel="stylesheet" href="{{ asset("assets/vendor/bootstrap.min.css") }}">
1414
<link rel="stylesheet" href="{{ asset("assets/css/style.css") }}">
15-
16-
{% if is_granted("IS_AUTHENTICATED_ANONYMOUSLY") %}
17-
{% include "CmfCreateBundle::includecssfiles.html.twig" %}
18-
{% endif %}
1915
{% endblock %}
2016

2117
{% block top_scripts %}
@@ -124,10 +120,7 @@
124120
</div>
125121

126122
{% block bottom_scripts %}
127-
<script type="text/javascript" src="{{ asset("assets/vendor/jquery.min.js") }}"></script>
128-
129-
{% render(controller("cmf_create.jsloader.controller:includeJSFilesAction")) %}
130-
123+
<script src="{{ asset("assets/vendor/jquery.min.js") }}"></script>
131124
<script src="{{ asset("assets/js/rawdata.js") }}"></script>
132125
<script src="{{ asset("assets/vendor/bootstrap.min.js") }}"></script>
133126
{% endblock %}

app/Resources/views/demo/template_explicit.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/routing/dynamic.html#configuring-the-controller-for-a-route"><i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.</a>
99
</div>
1010

11-
{% createphp cmfMainContent as="rdf" %}
12-
{{ rdf|raw }}
13-
{% endcreatephp %}
11+
<h1>{{ cmfMainContent.title }}</h1>
12+
{{ cmfMainContent.body|raw }}
1413

1514
{{ parent() }}
1615
{% endblock %}

app/Resources/views/homepage/index.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/routing/dynamic.html#configuring-the-controller-for-a-route"><i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.</a>
2424
</div>
2525

26-
{% createphp cmfMainContent as="rdf" %}
27-
{{ rdf|raw }}
28-
{% endcreatephp %}
26+
<h1>{{ cmfMainContent.title }}</h1>
27+
28+
{{ cmfMainContent.body|raw }}
2929

3030
{{ sonata_block_render({ 'name': 'additionalInfoBlock' }, {
3131
'divisible_by': 3,

app/Resources/views/static_content/index.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/content/introduction.html"><i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.</a>
88
</div>
99

10-
{% createphp cmfMainContent as="rdf" %}
11-
{{ rdf|raw }}
12-
{% endcreatephp %}
10+
<h1>{{ cmfMainContent.title }}</h1>
11+
{{ cmfMainContent.body|raw }}
1312

1413
{{ sonata_block_render({ 'name': 'additionalInfoBlock' }) }}
1514
{% endblock %}

app/config/config.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,6 @@ cmf_routing:
113113
Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page: CmfSimpleCmsBundle:Page:index.html.twig
114114
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent: static_content/index.html.twig
115115

116-
cmf_create:
117-
editor_base_path: /bundles/cmfcreate/vendor/ckeditor/
118-
security:
119-
# WARNING: REMOVE THIS FOR PRODUCTION SITES
120-
# for demo purposes we are allowing anonymous inline editing
121-
role: IS_AUTHENTICATED_ANONYMOUSLY
122-
123116
cmf_seo:
124117
title: 'CMF Sandbox - %%content_title%%'
125118
description: 'The Content Management Framework. %%content_description%%'

app/config/routing.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ cmf_tree:
5555
resource: .
5656
type: 'cmf_tree'
5757

58-
create:
59-
resource: '@CmfCreateBundle/Resources/config/routing/rest.xml'
60-
61-
create_image:
62-
resource: '@CmfCreateBundle/Resources/config/routing/image.xml'
63-
6458
liip_search:
6559
resource: '@CmfSearchBundle/Resources/config/routing/phpcr/search.xml'
6660

composer.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525
"symfony-cmf/symfony-cmf": "1.3.*",
2626
"symfony-cmf/simple-cms-bundle": "1.3.*",
27-
"symfony-cmf/search-bundle": "1.1.*",
28-
"symfony-cmf/create-bundle": "1.2.*",
29-
"symfony-cmf/seo-bundle": "1.1.*",
27+
"symfony-cmf/search-bundle": "1.2.*",
28+
"symfony-cmf/seo-bundle": "1.2.*",
3029
"symfony-cmf/routing-auto-bundle": "1.0.*",
3130

3231
"jackalope/jackalope-doctrine-dbal": "1.2.*",
@@ -42,10 +41,10 @@
4241
"sonata-project/translation-bundle": "1.0.0",
4342

4443
"jms/serializer-bundle": "^0.13|^1.0",
44+
"friendsofsymfony/rest-bundle": "~1.7",
4545
"eko/feedbundle": "^1.0",
4646
"lunetics/locale-bundle": "^2.3",
4747
"liip/imagine-bundle": "^1.0",
48-
"wjzijderveld/check-bundles": "^1.1",
4948
"helios-ag/fm-elfinder-bundle": "^1.4",
5049
"burgov/key-value-form-bundle": "^1.0",
5150
"incenteev/composer-parameter-handler": "^2.0",
@@ -61,17 +60,13 @@
6160
"scripts": {
6261
"post-install-cmd": [
6362
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
64-
"WillemJan\\CheckBundles\\Composer\\CheckBundles::postPackageUpdate",
65-
"Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
6663
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
6764
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
6865
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
6966
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
7067
],
7168
"post-update-cmd": [
7269
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
73-
"WillemJan\\CheckBundles\\Composer\\CheckBundles::postPackageUpdate",
74-
"Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor",
7570
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
7671
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
7772
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
@@ -82,10 +77,6 @@
8277
"bin-dir": "bin"
8378
},
8479
"extra": {
85-
"checkbundles-ignore": [
86-
"Liip\\FunctionalTestBundle\\LiipFunctionalTestBundle",
87-
"Sensio\\Bundle\\DistributionBundle\\SensioDistributionBundle"
88-
],
8980
"symfony-app-dir": "app",
9081
"symfony-web-dir": "web",
9182
"incenteev-parameters": [

0 commit comments

Comments
 (0)