-
Notifications
You must be signed in to change notification settings - Fork 156
[phpcr-odm] change doc to best practices #798
Conversation
// app/config/config.php | ||
use AppBundle\EventListener\SearchIndexer; | ||
use AppBundle\EventListener\MyListener; | ||
|
||
$container | ||
->register( | ||
'acme_search.listener.search', |
There was a problem hiding this comment.
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" ] |
There was a problem hiding this comment.
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', [ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
fixing things against 2.0 in #807 |
No description provided.