-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMigrate-an-alphalemon-cms-block-to-redkite-cms
64 lines (44 loc) · 1.96 KB
/
Migrate-an-alphalemon-cms-block-to-redkite-cms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Migrate an AlphaLemon CMS Block to a RedKite CMS Block
======================================================
This document explains in detail how to migrate an existing AlphaLemon CMS Block to
a RedKite CMS Block.
The AlphaLemon namespace
------------------------
Many services of your block, refer to many AlphaLemon objects: you must change this
reference.
Search the **AlphaLemon\AlphaLemonCmsBundle** reference and replace it with **RedKiteLabs\RedKiteCmsBundle**.
.. note:
Doing this by hand is quite a nightmare, so you should use an IDE which has a function
to let you search and replace in files.
The AlphaLemon folder
---------------------
RedKite CMS Themes live under the **RedKiteCms**, so rename the **AlphaLemon** to
**RedKiteCms**.
Due to this change you must replace all the **AlphaLemon** entries in your bundle,
so search **AlphaLemon** and replace it with **RedKiteCms**.
The app_block.xml configuration file
------------------------------------
Open the **Resources/config/app_block.xml** and replace the **alphalemon_cms.blocks_factory.block**
tag entry with **red_kite_cms.blocks_factory.block** for the service that defines the block.
If your service requires the **alpha_lemon_cms.events_handler** as first argument,
replace it with the **red_kite_cms.events_handler** service.
The configuration files
-----------------------
Inside the **Resources/config** there are three configuration files:
- config_alcms
- config_alcms_dev
- config_alcms_test
rename them as
- config_rkcms
- config_rkcms_dev
- config_rkcms_test
Open the **config_rkcms_dev** and the **config_rkcms_test** and in both files, replace
the reference to **config_alcms** with **config_rkcms**.
Run the commands
----------------
The hard job has been made, so run the following commands from the console to complete
the migration:
.. code:: text
php app/console ca:c --env=rkcms_dev
php app/console assets:install web --env=rkcms
php app/console assetic:dump --env=rkcms