Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit dadd119

Browse files
committed
Merge pull request #483 from symfony-cmf/remove_midgard
Remove midgard
2 parents 10a3d73 + f04a0df commit dadd119

File tree

3 files changed

+4
-98
lines changed

3 files changed

+4
-98
lines changed

bundles/phpcr_odm/introduction.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ manager in symfony.
1212
Out of the box, this bundle supports the following PHPCR implementations:
1313

1414
* `Jackalope`_ (Jackrabbit, Doctrine DBAL and prismic transports)
15-
* `Midgard2`_
1615

1716
.. tip::
1817

@@ -493,7 +492,6 @@ Read On
493492
.. _`DoctrinePHPCRBundle`: https://github.com/doctrine/DoctrinePHPCRBundle
494493
.. _`Symfony2 Doctrine documentation`: http://symfony.com/doc/current/book/doctrine.html
495494
.. _`Jackalope`: http://jackalope.github.io/
496-
.. _`Midgard2`: http://midgard-project.org/phpcr/
497495
.. _`the PHPCR website`: http://phpcr.github.io/
498496
.. _`PHPCR-ODM documentation`: http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/
499497
.. _`bug in libxml`: http://bugs.php.net/bug.php?id=36501)

cookbook/database/choosing_phpcr_implementation.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ switch to a different content repository implementation later on.
1818
If you are just getting started with the CMF, it is best to choose a
1919
content repository based on a storage engine that you are already familiar
2020
with. For example, **Jackalope with Doctrine DBAL** will work with your
21-
existing RDBMS and does not require you to install Java or the midgard2
22-
PHP extension. Once you have a working application it should be easy to
23-
switch to another option.
21+
existing RDBMS and does not require you to install Java Once you have a
22+
working application it should be easy to switch to another option.
2423

2524
Jackalope with Jackrabbit
2625
-------------------------
@@ -46,9 +45,4 @@ Jackalope with prismic.io
4645
Reads data from the `prismic.io`_ service. At the moment this implementation
4746
is experimental.
4847

49-
Midgard
50-
-------
51-
52-
Requires the midgard2 PHP extension and an RDBMS like MySQL, PostgreSQL or SQLite.
53-
5448
.. _`prismic.io`: https://prismic.io/

reference/configuration/phpcr_odm.rst

Lines changed: 2 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ These credentials are used on the PHPCR layer for the
125125
``PHPCR\SimpleCredentials``. They are optional for jackalope doctrine-dbal.
126126

127127
Do not confuse these credentials with the username and password used by
128-
Midgard2 or Doctrine DBAL to connect to the underlying RDBMS where the data
128+
Doctrine DBAL to connect to the underlying RDBMS where the data
129129
is actually stored.
130130

131131
backend type
@@ -137,8 +137,7 @@ This designates the PHPCR implementation. Valid options are
137137

138138
* ``jackrabbit``;
139139
* ``doctrinedbal``;
140-
* ``prismic``;
141-
* ``midgard2``.
140+
* ``prismic``.
142141

143142
backend parameters
144143
""""""""""""""""""
@@ -371,87 +370,6 @@ actively used, every save operation is wrapped into a transaction.
371370
Only allowed for doctrine-dbal because jackrabbit does not support
372371
transactions.
373372

374-
PHPCR Session with Midgard2
375-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
376-
377-
Midgard2 is an application that provides a compiled PHP extension. It
378-
implements the PHPCR API on top of a standard RDBMS.
379-
380-
To use the Midgard2 PHPCR provider, you must have both the
381-
`midgard2 PHP extension`_ and `the midgard/phpcr package`_ installed. The
382-
settings here correspond to Midgard2 repository parameters as explained in
383-
`the getting started document`_.
384-
385-
The session backend configuration looks as follows:
386-
387-
.. configuration-block::
388-
389-
.. code-block:: yaml
390-
391-
# app/config/config.yml
392-
doctrine_phpcr:
393-
session:
394-
backend:
395-
type: midgard2
396-
config: /path/to/midgard-config.ini
397-
db_type: MySQL
398-
db_name: midgard2_test
399-
db_host: "0.0.0.0"
400-
db_port: 3306
401-
db_username: ""
402-
db_password: ""
403-
db_init: true
404-
blobdir: /tmp/cmf-blobs
405-
loglevel: debug
406-
407-
.. code-block:: xml
408-
409-
<!-- app/config/config.xml -->
410-
<?xml version="1.0" encoding="UTF-8" ?>
411-
<container xmlns="http://symfony.com/schema/dic/services">
412-
413-
<config xmlns="http://doctrine-project.org/schema/symfony-dic/odm/phpcr">
414-
415-
<session>
416-
417-
<backend type="midgard2"
418-
config="/path/to/midgard-config.ini"
419-
db-type="MySQL"
420-
db-name="midgard2_test"
421-
db-host="0.0.0.0"
422-
db-port="3306"
423-
db-username=""
424-
db-password=""
425-
db-init="true"
426-
blobdir="/tmp/cmf-blobs"
427-
loglevel="debug"
428-
/>
429-
</session>
430-
</config>
431-
</container>
432-
433-
.. code-block:: php
434-
435-
// app/config/config.php
436-
$container->loadFromExtension('doctrine_phpcr', array(
437-
'session' => array(
438-
'backend' => array(
439-
'type' => 'midgard2',
440-
'config' => '/path/to/midgard-config.ini',
441-
'db_name' => 'midgard2_test',
442-
'db_host' => '0.0.0.0',
443-
'db_port' => 3306,
444-
'db_username' => '',
445-
'db_password' => '',
446-
'db_init' => true,
447-
'blobdir' => '/tmp/cmf-blobs",
448-
'loglevel' => 'debug',
449-
),
450-
),
451-
));
452-
453-
For more information, please refer to the `official Midgard PHPCR documentation`_.
454-
455373
.. _reference-configuration-phpcr-odm-logging:
456374

457375
Logging and Profiling
@@ -714,8 +632,4 @@ For tuning the output of the ``doctrine:phpcr:dump`` command.
714632

715633
.. _`Symfony2 Doctrine documentation`: http://symfony.com/doc/current/book/doctrine.html
716634
.. _`last modified listener cookbook entry`: http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/cookbook/last-modified.html
717-
.. _`midgard2 PHP extension`: http://midgard-project.org/midgard2/#download
718-
.. _`the midgard/phpcr package`: http://packagist.org/packages/midgard/phpcr
719-
.. _`the getting started document`: http://midgard-project.org/phpcr/#getting_started
720-
.. _`official Midgard PHPCR documentation`: http://midgard-project.org/phpcr/
721635
.. _`Doctrine ORM`: http://symfony.com/doc/current/reference/configuration/doctrine.html#caching-drivers

0 commit comments

Comments
 (0)