Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Feature/elastic adapter #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function registerBundles()
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Sonata\IntlBundle\SonataIntlBundle(),
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle(),

new App\NekoWiki(),
Expand Down
4 changes: 2 additions & 2 deletions app/SymfonyRequirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ function_exists('simplexml_import_dom'),
require_once __DIR__.'/../vendor/autoload.php';

try {
$r = new \ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');
$r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');

$contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
} catch (\ReflectionException $e) {
} catch (ReflectionException $e) {
$contents = '';
}
$this->addRecommendation(
Expand Down
26 changes: 26 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,29 @@ sonata_intl:
locales:
fr: Europe/Paris
en: America/New_York


#fos_elastica:
# clients:
# default: { host: localhost, port: 9200 }
# serializer: ~
# indexes:
# neko_wiki:
# index_name: neko_wiki_%kernel.environment%
# types:
# page:
# serializer:
# groups: [elastica]
#
# persistence:
# # the driver can be orm, mongodb or propel
# # listener and finder are not supported by
# # propel and should be removed
# driver: orm
# model: App\Entity\PageTranslation
# provider: ~
# listener:
# immediate: ~
# finder: ~
# elastica_to_model_transformer:
# query_builder_method: createElasticSearchQueryBuilder
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"white-october/pagerfanta-bundle": "dev-master",
"sonata-project/intl-bundle": "~2.2",
"knplabs/knp-markdown-bundle": "~1.3",
"knplabs/doctrine-behaviors": "~1.1"
"jms/serializer-bundle": "~1.0",
"knplabs/doctrine-behaviors": "~1.1",
"ruflin/elastica": "dev-master"
},
"require-dev": {
"sensio/generator-bundle": "~2.3",
Expand Down
Loading