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

[phpcr-odm] change doc to best practices #798

Closed
wants to merge 1 commit into from

Conversation

dbu
Copy link
Member

@dbu dbu commented Jan 24, 2017

No description provided.

@dbu dbu added the wip/poc label Jan 24, 2017
// app/config/config.php
use AppBundle\EventListener\SearchIndexer;
use AppBundle\EventListener\MyListener;

$container
->register(
'acme_search.listener.search',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app.phpcr_search_indexer

class: Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer
arguments:
- AcmeContentBundle Basepaths
- App Basepaths
- [ "/my/content", "/my/menu" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be no spaces at the inside of []

'%acme.cnd%',
)
));
'Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer', [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::class constant?

@@ -117,13 +117,14 @@ depending on the locale.
.. code-block:: php

<?php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the open tag

'dms' => array(
'configuration_id' => 'magnolia.odm_configuration',
'mappings' => [
'MagnoliaBundle' => null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be appbundle?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to be two different bundles. rather than making this FooBundle i took a real example. is that ok or should i explain more above the example what we are doing here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, well. If we need 2 different bundles, it's perfect this way (didn't read the articles, just quickly looked at the diff)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the confusion does highlight less then ideal documentation. i now xplain a bit what we do above the example, to make this more understandable.

@dbu
Copy link
Member Author

dbu commented Jan 25, 2017

fixing things against 2.0 in #807

@dbu dbu closed this Jan 25, 2017
@dbu dbu removed the wip/poc label Jan 25, 2017
@dbu dbu deleted the best-practices-phpcr-odm branch January 25, 2017 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants