GithubHelp home page GithubHelp logo

etondigital / edblogbundle Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 20.0 871 KB

EDBlogBundle is extensive and user friendly blog bundle for Symfony2. It provides a lot of interesting features that makes a serious bloging platform from your Symfony2 application. It is very intuitive and flexible, you can easily fit it to your own needs.

License: MIT License

PHP 52.55% Ruby 0.28% CSS 18.00% JavaScript 6.80% HTML 22.36%

edblogbundle's People

Contributors

ristarr11 avatar vladimirbogdanovic avatar vmladenovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edblogbundle's Issues

Multilanguage support

Hi,

First of all, I want to thank you for your work, this bundle saves me a lot of work.
Can you tell me what is the best way to use the bundle for a multilangage blog?
I wanted to put a property $locale in articles, categories and tags entities but if I do that, I have to change repositories. For example ArticleRepository functions to get articles collection in a given language, and a lot of other things in templates, such as the sortableTh macro, in wich I have to put the locale parameter for the given route and all the routes parameters for list and create action, because the controller needs to know the locale.

What is the best way to do what I want?

Thank you

Bug when the excerpt image is deleted

Hello,

Thank's for your job ! It's a pleasure to use it ;-)

But I found a bug when I want to delete the excerpt image from my article ... the image is not deleted ???

Is it possible to correct this bug ?

Regards
Ben

Type error: Argument 1 passed to ED\BlogBundle\Security\Authorization\Voter\ArticleVoter::__construct() must be an instance of ED\BlogBundle\Security\ACL\ArticlePermissionMap, none given

After following the install instructions i am presented with the following exception when trying to login.

meh

Any idea where i might have made a mistake?

Here's the plain text stack trace:
`
[1] Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to ED\BlogBundle\Security\Authorization\Voter\ArticleVoter::__construct() must be an instance of ED\BlogBundle\Security\ACL\ArticlePermissionMap, none given, called in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php on line 37
at n/a
in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php line 22

at ED\BlogBundle\Security\Authorization\Voter\ArticleVoter->__construct()
    in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php line 37

at ED\BlogBundle\Security\Authorization\Voter\ArticleVoter->supportsClass('ED\BlogBundle\Security\Authorization\Voter\ArticleVoter')
    in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php line 59

at ED\BlogBundle\Security\Authorization\Voter\ArticleVoter->vote(object(AnonymousToken), null, array('IS_AUTHENTICATED_REMEMBERED'))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 2778

at Symfony\Component\Security\Core\Authorization\AccessDecisionManager->decideAffirmative(object(AnonymousToken), array('IS_AUTHENTICATED_REMEMBERED'), null)
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 2754

at Symfony\Component\Security\Core\Authorization\AccessDecisionManager->decide(object(AnonymousToken), array('IS_AUTHENTICATED_REMEMBERED'), null)
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 2884

at Symfony\Component\Security\Core\Authorization\AuthorizationChecker->isGranted(array('IS_AUTHENTICATED_REMEMBERED'), null)
    in /srv/mikudb-symfony2-dev/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Extension/SecurityExtension.php line 41

at Symfony\Bridge\Twig\Extension\SecurityExtension->isGranted('IS_AUTHENTICATED_REMEMBERED')
    in /srv/mikudb-symfony2-dev/app/cache/dev/twig/57/57e31b1f648ebc45e8bbb5a9acb178c633b310fbb6b1541059bc9fa3a0c5833a.php line 32

at __TwigTemplate_f055c9416ac9310e1f16143fea9518ff8882c67680064ec0601a214a5128d0bf->doDisplay(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables)), array('fos_user_content' => array(object(__TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd), 'block_fos_user_content')))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 4891

at Twig_Template->displayWithErrorHandling(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables)), array('fos_user_content' => array(object(__TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd), 'block_fos_user_content')))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 4872

at Twig_Template->display(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables)), array('fos_user_content' => array(object(__TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd), 'block_fos_user_content')))
    in /srv/mikudb-symfony2-dev/app/cache/dev/twig/ed/ed78adc16e6afe28480cbdc14a5f587335a629923ffbe5b390865a4f7f5c3286.php line 27

at __TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd->doDisplay(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables)), array('fos_user_content' => array(object(__TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd), 'block_fos_user_content')))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 4891

at Twig_Template->displayWithErrorHandling(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables)), array('fos_user_content' => array(object(__TwigTemplate_cdf546c3c587ffe8a6093fa806bf15161da414e5187764abfc225d061bcf35fd), 'block_fos_user_content')))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 4872

at Twig_Template->display(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/app/cache/dev/classes.php line 4879

at Twig_Template->render(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50

at Symfony\Bridge\Twig\TwigEngine->render('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72

at Symfony\Bundle\TwigBundle\TwigEngine->render('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97

at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'), object(Response))
    in /srv/mikudb-symfony2-dev/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 176

at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php line 79

at FOS\UserBundle\Controller\SecurityController->renderLogin(array('last_username' => null, 'error' => null, 'csrf_token' => '8jDOo-Uxk_wf8UVFE2p4G1T8fEKXrqZV0jMhGtf4Dl4'))
    in /srv/mikudb-symfony2-dev/vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php line 65

at FOS\UserBundle\Controller\SecurityController->loginAction(object(Request))
    in  line 

at call_user_func_array(array(object(SecurityController), 'loginAction'), array(object(Request)))
    in /srv/mikudb-symfony2-dev/app/bootstrap.php.cache line 3110

at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
    in /srv/mikudb-symfony2-dev/app/bootstrap.php.cache line 3072

at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
    in /srv/mikudb-symfony2-dev/app/bootstrap.php.cache line 3223

at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
    in /srv/mikudb-symfony2-dev/app/bootstrap.php.cache line 2442

at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
    in /srv/mikudb-symfony2-dev/web/app_dev.php line 29

`

Documentation - Prerequisite ASSETIC

Hi !

Thank you for this great job !

I had a small problem because Assetic wasn't configured.
I managed to get by but maybe we could add something in the documentation ?

Twig 2.0 support

Hi, I just installed this bundle and it seems like it's not Twig 2.0 compatible. And the reason is old version of sonata-project/doctrine-orm-admin-bundle, here is the complete dependency tree:

ed/blog-bundle v1.0.5 Symfony EDBlogBundle
|--doctrine/doctrine-bundle ~1.4
|  |--doctrine/dbal ~2.3
|  |  |--doctrine/common >=2.4,<2.8-dev
|  |  |  |--doctrine/annotations 1.*
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/cache 1.*
|  |  |  |  `--php ~5.5|~7.0
|  |  |  |--doctrine/collections 1.*
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/inflector 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ~5.6|~7.0
|  |  `--php >=5.3.2
|  |--doctrine/doctrine-cache-bundle ~1.0
|  |  |--doctrine/cache ^1.4.2
|  |  |  `--php ~5.5|~7.0
|  |  |--doctrine/inflector ~1.0
|  |  |  `--php >=5.3.2
|  |  |--php >=5.3.2
|  |  `--symfony/doctrine-bridge ~2.2|~3.0
|  |--jdorn/sql-formatter ~1.1
|  |  `--php >=5.2.4
|  |--php >=5.5.9
|  |--symfony/console ~2.7|~3.0
|  |--symfony/dependency-injection ~2.7|~3.0
|  |--symfony/doctrine-bridge ~2.7|~3.0
|  `--symfony/framework-bundle ~2.7|~3.0
|--doctrine/doctrine-fixtures-bundle *
|  |--doctrine/data-fixtures ~1.0
|  |  |--doctrine/common ~2.2
|  |  |  |--doctrine/annotations 1.*
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/cache 1.*
|  |  |  |  `--php ~5.5|~7.0
|  |  |  |--doctrine/collections 1.*
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/inflector 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ~5.6|~7.0
|  |  `--php ^5.6 || ^7.0
|  |--doctrine/doctrine-bundle ~1.0
|  |  |--doctrine/dbal ~2.3
|  |  |  |--doctrine/common >=2.4,<2.8-dev
|  |  |  |  |--doctrine/annotations 1.*
|  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/cache 1.*
|  |  |  |  |  `--php ~5.5|~7.0
|  |  |  |  |--doctrine/collections 1.*
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/inflector 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ~5.6|~7.0
|  |  |  `--php >=5.3.2
|  |  |--doctrine/doctrine-cache-bundle ~1.0
|  |  |  |--doctrine/cache ^1.4.2
|  |  |  |  `--php ~5.5|~7.0
|  |  |  |--doctrine/inflector ~1.0
|  |  |  |  `--php >=5.3.2
|  |  |  |--php >=5.3.2
|  |  |  `--symfony/doctrine-bridge ~2.2|~3.0
|  |  |--jdorn/sql-formatter ~1.1
|  |  |  `--php >=5.2.4
|  |  |--php >=5.5.9
|  |  |--symfony/console ~2.7|~3.0
|  |  |--symfony/dependency-injection ~2.7|~3.0
|  |  |--symfony/doctrine-bridge ~2.7|~3.0
|  |  `--symfony/framework-bundle ~2.7|~3.0
|  |--php >=5.3.2
|  `--symfony/doctrine-bridge ~2.1
|--eko/feedbundle ~1.2
|  |--php ^5.4|^7.0
|  |--symfony/framework-bundle ^2.5|^3.0
|  |--zendframework/zend-feed >=2.0
|  |  |--php ^5.6 || ^7.0
|  |  |--zendframework/zend-escaper ^2.5
|  |  |  `--php >=5.5
|  |  `--zendframework/zend-stdlib ^2.7 || ^3.1
|  |     `--php ^5.6 || ^7.0
|  |--zendframework/zend-http >=2.0
|  |  |--php ^5.5 || ^7.0
|  |  |--zendframework/zend-loader ^2.5
|  |  |  `--php >=5.3.23
|  |  |--zendframework/zend-stdlib ^2.5 || ^3.0
|  |  |  `--php ^5.6 || ^7.0
|  |  |--zendframework/zend-uri ^2.5
|  |  |  |--php ^5.5 || ^7.0
|  |  |  |--zendframework/zend-escaper ^2.5
|  |  |  |  `--php >=5.5
|  |  |  `--zendframework/zend-validator ^2.5
|  |  |     |--container-interop/container-interop ^1.1
|  |  |     |  `--psr/container ^1.0
|  |  |     |     `--php >=5.3.0
|  |  |     |--php ^5.6 || ^7.0
|  |  |     `--zendframework/zend-stdlib ^2.7.6 || ^3.1
|  |  |        `--php ^5.6 || ^7.0
|  |  `--zendframework/zend-validator ^2.5
|  |     |--container-interop/container-interop ^1.1
|  |     |  `--psr/container ^1.0
|  |     |     `--php >=5.3.0
|  |     |--php ^5.6 || ^7.0
|  |     `--zendframework/zend-stdlib ^2.7.6 || ^3.1
|  |        `--php ^5.6 || ^7.0
|  `--zendframework/zend-servicemanager >=2.0
|     |--container-interop/container-interop ^1.2
|     |  `--psr/container ^1.0
|     |     `--php >=5.3.0
|     |--php ^5.6 || ^7.0
|     |--psr/container ^1.0
|     |  `--php >=5.3.0
|     `--zendframework/zend-stdlib ^3.1
|        `--php ^5.6 || ^7.0
|--friendsofsymfony/user-bundle *
|  |--paragonie/random_compat ^1 || ^2
|  |  `--php >=5.2.0
|  |--php ^5.5.9 || ^7.0
|  |--symfony/form ^2.7 || ^3.0
|  |--symfony/framework-bundle ^2.7 || ^3.0
|  |--symfony/security-bundle ^2.7 || ^3.0
|  |--symfony/templating ^2.7 || ^3.0
|  |--symfony/twig-bundle ^2.7 || ^3.0
|  `--twig/twig ^1.28 || ^2.0
|     `--php >=5.2.7
|--incenteev/composer-parameter-handler ~2.0
|  |--php >=5.3.3
|  `--symfony/yaml ~2.3|~3.0
|--jms/serializer-bundle ~0.13
|  |--jms/serializer ~0.11
|  |  |--doctrine/annotations 1.*
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ^5.6 || ^7.0
|  |  |--jms/metadata ~1.1
|  |  |  `--php >=5.3.0
|  |  |--jms/parser-lib 1.*
|  |  |  `--phpoption/phpoption >=0.9,<2.0-dev
|  |  |     `--php >=5.3.0
|  |  |--php >=5.3.2
|  |  `--phpcollection/phpcollection ~0.1
|  |     `--phpoption/phpoption 1.*
|  |        `--php >=5.3.0
|  |--php >=5.3.2
|  `--symfony/framework-bundle ~2.1
|--knplabs/knp-paginator-bundle *
|  |--knplabs/knp-components ~1.2
|  |  `--php >=5.3.2
|  |--php >=5.3.3
|  |--symfony/framework-bundle ~2.3|~3.0
|  `--twig/twig ~1.12|~2
|     `--php >=5.2.7
|--php >=5.3.3
|--sensio/framework-extra-bundle ~3.0,>=3.0.2
|  |--doctrine/common ~2.2
|  |  |--doctrine/annotations 1.*
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ^5.6 || ^7.0
|  |  |--doctrine/cache 1.*
|  |  |  `--php ~5.5|~7.0
|  |  |--doctrine/collections 1.*
|  |  |  `--php ^5.6 || ^7.0
|  |  |--doctrine/inflector 1.*
|  |  |  `--php >=5.3.2
|  |  |--doctrine/lexer 1.*
|  |  |  `--php >=5.3.2
|  |  `--php ~5.6|~7.0
|  |--symfony/dependency-injection ~2.3|~3.0
|  `--symfony/framework-bundle ~2.3|~3.0
|--sonata-project/doctrine-orm-admin-bundle ^2.3
|  |--doctrine/orm ~2.3
|  |  |--doctrine/collections ~1.1
|  |  |  `--php ^5.6 || ^7.0
|  |  |--doctrine/dbal ~2.4
|  |  |  |--doctrine/common >=2.4,<2.8-dev
|  |  |  |  |--doctrine/annotations 1.*
|  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/cache 1.*
|  |  |  |  |  `--php ~5.5|~7.0
|  |  |  |  |--doctrine/collections 1.*
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/inflector 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ~5.6|~7.0
|  |  |  `--php >=5.3.2
|  |  |--ext-pdo *
|  |  |--php >=5.3.2
|  |  `--symfony/console ~2.0
|  |--sonata-project/admin-bundle ~2.3@dev
|  |  |--doctrine/common ~2.2
|  |  |  |--doctrine/annotations 1.*
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/cache 1.*
|  |  |  |  `--php ~5.5|~7.0
|  |  |  |--doctrine/collections 1.*
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/inflector 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ~5.6|~7.0
|  |  |--doctrine/inflector ~1.0
|  |  |  `--php >=5.3.2
|  |  |--knplabs/knp-menu >=1.1.0,<3.0.0
|  |  |  `--php >=5.3.0
|  |  |--knplabs/knp-menu-bundle >=1.1.0,<3.0.0
|  |  |  |--knplabs/knp-menu ~2.2
|  |  |  |  `--php >=5.3.0
|  |  |  `--symfony/framework-bundle ~2.3|~3.0
|  |  |--sensio/generator-bundle ~2.3
|  |  |  |--symfony/console ~2.5
|  |  |  `--symfony/framework-bundle ~2.2
|  |  |--sonata-project/block-bundle ~2.2,>=2.2.7,<2.3
|  |  |  |--doctrine/common ~2.3
|  |  |  |  |--doctrine/annotations 1.*
|  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/cache 1.*
|  |  |  |  |  `--php ~5.5|~7.0
|  |  |  |  |--doctrine/collections 1.*
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/inflector 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ~5.6|~7.0
|  |  |  |--sonata-project/cache ~1.0
|  |  |  |--sonata-project/core-bundle ^2.2.1
|  |  |  |  |--cocur/slugify ~1.4|~2.0
|  |  |  |  |  `--php >=5.5.9
|  |  |  |  |--symfony/config ~2.3|~3.0
|  |  |  |  |--symfony/form ~2.3|~3.0
|  |  |  |  |--symfony/http-foundation ~2.3|~3.0
|  |  |  |  |--symfony/property-access ~2.3|~3.0
|  |  |  |  |--symfony/translation ~2.3|~3.0
|  |  |  |  |--symfony/validator ~2.3|~3.0
|  |  |  |  `--twig/twig ~1.23
|  |  |  |     `--php >=5.2.7
|  |  |  |--symfony/form ~2.2
|  |  |  `--symfony/http-kernel ~2.2
|  |  |--sonata-project/core-bundle ^2.2.1
|  |  |  |--cocur/slugify ~1.4|~2.0
|  |  |  |  `--php >=5.5.9
|  |  |  |--symfony/config ~2.3|~3.0
|  |  |  |--symfony/form ~2.3|~3.0
|  |  |  |--symfony/http-foundation ~2.3|~3.0
|  |  |  |--symfony/property-access ~2.3|~3.0
|  |  |  |--symfony/translation ~2.3|~3.0
|  |  |  |--symfony/validator ~2.3|~3.0
|  |  |  `--twig/twig ~1.23
|  |  |     `--php >=5.2.7
|  |  |--sonata-project/exporter ~1.0
|  |  |  `--php ^5.3 || ^7.0
|  |  |--symfony/class-loader ~2.3
|  |  |--symfony/config ~2.3
|  |  |--symfony/console ~2.3
|  |  |--symfony/expression-language ~2.4
|  |  |--symfony/form ~2.3
|  |  |--symfony/http-foundation ~2.3
|  |  |--symfony/property-access ~2.3
|  |  |--symfony/routing ~2.3
|  |  |--symfony/security-bundle ~2.3
|  |  |--symfony/twig-bridge ~2.3
|  |  |--symfony/validator ~2.3
|  |  |--twig/extensions ~1.0
|  |  |  `--twig/twig ~1.20|~2.0
|  |  |     `--php >=5.2.7
|  |  `--twig/twig ~1.15
|  |     `--php >=5.2.7
|  |--sonata-project/exporter ~1.3,>=1.3.1
|  |  `--php ^5.3 || ^7.0
|  |--symfony/console ~2.3
|  |--symfony/doctrine-bridge ~2.2
|  |--symfony/form ~2.3
|  |--symfony/framework-bundle ~2.2
|  `--symfony/security ~2.3
|--sonata-project/media-bundle ~2.3
|  |--friendsofsymfony/rest-bundle ~1.1
|  |  |--doctrine/inflector ~1.0
|  |  |  `--php >=5.3.2
|  |  |--php ^5.3.9|~7.0
|  |  |--psr/log ~1.0
|  |  |  `--php >=5.3.0
|  |  |--symfony/framework-bundle ~2.3|~3.0
|  |  |--symfony/http-kernel ^2.3.24|~3.0
|  |  |--willdurand/jsonp-callback-validator ~1.0
|  |  |  `--php >=5.3.0
|  |  `--willdurand/negotiation ~1.2
|  |     `--php >=5.3.0
|  |--imagine/imagine ~0.3
|  |  `--php >=5.3.2
|  |--jms/serializer-bundle ~0.11|~1.0
|  |  |--jms/serializer ~0.11
|  |  |  |--doctrine/annotations 1.*
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--jms/metadata ~1.1
|  |  |  |  `--php >=5.3.0
|  |  |  |--jms/parser-lib 1.*
|  |  |  |  `--phpoption/phpoption >=0.9,<2.0-dev
|  |  |  |     `--php >=5.3.0
|  |  |  |--php >=5.3.2
|  |  |  `--phpcollection/phpcollection ~0.1
|  |  |     `--phpoption/phpoption 1.*
|  |  |        `--php >=5.3.0
|  |  |--php >=5.3.2
|  |  `--symfony/framework-bundle ~2.1
|  |--knplabs/gaufrette >=0.1.6
|  |  `--php >=5.4
|  |--kriswallsmith/buzz ~0.1
|  |  `--php >=5.3.0
|  |--nelmio/api-doc-bundle ~2.4
|  |  |--michelf/php-markdown ~1.4
|  |  |  `--php >=5.3.0
|  |  |--php >=5.4
|  |  |--symfony/console ~2.3|~3.0
|  |  |--symfony/framework-bundle ~2.3|~3.0
|  |  `--symfony/twig-bundle ~2.3|~3.0
|  |--sonata-project/core-bundle ~2.3
|  |  |--cocur/slugify ~1.4|~2.0
|  |  |  `--php >=5.5.9
|  |  |--symfony/config ~2.3|~3.0
|  |  |--symfony/form ~2.3|~3.0
|  |  |--symfony/http-foundation ~2.3|~3.0
|  |  |--symfony/property-access ~2.3|~3.0
|  |  |--symfony/translation ~2.3|~3.0
|  |  |--symfony/validator ~2.3|~3.0
|  |  `--twig/twig ~1.23
|  |     `--php >=5.2.7
|  |--sonata-project/doctrine-extensions ~1.0
|  |  |--doctrine/dbal ~2.2
|  |  |  |--doctrine/common >=2.4,<2.8-dev
|  |  |  |  |--doctrine/annotations 1.*
|  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/cache 1.*
|  |  |  |  |  `--php ~5.5|~7.0
|  |  |  |  |--doctrine/collections 1.*
|  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |--doctrine/inflector 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ~5.6|~7.0
|  |  |  `--php >=5.3.2
|  |  `--php >=5.3.2
|  |--sonata-project/easy-extends-bundle ~2.1
|  |  |--php ^5.3.2 || ^7.0
|  |  |--symfony/console ^2.1 || ^3.0
|  |  |--symfony/finder ^2.1 || ^3.0
|  |  `--symfony/framework-bundle ^2.1 || ^3.0
|  |--sonata-project/intl-bundle ~2.2
|  |  |--php ^5.3 || ^7.0
|  |  |--symfony/dependency-injection ^2.2 || ^3.0
|  |  |--symfony/http-kernel ^2.2 || ^3.0
|  |  |--symfony/intl ^2.3.21 || ^3.0
|  |  |--symfony/templating ^2.2 || ^3.0
|  |  `--twig/twig ^1.12 || ^2.0
|  |     `--php >=5.2.7
|  |--sonata-project/notification-bundle ~2.2
|  |  |--sonata-project/core-bundle ^2.3.10
|  |  |  |--cocur/slugify ~1.4|~2.0
|  |  |  |  `--php >=5.5.9
|  |  |  |--symfony/config ~2.3|~3.0
|  |  |  |--symfony/form ~2.3|~3.0
|  |  |  |--symfony/http-foundation ~2.3|~3.0
|  |  |  |--symfony/property-access ~2.3|~3.0
|  |  |  |--symfony/translation ~2.3|~3.0
|  |  |  |--symfony/validator ~2.3|~3.0
|  |  |  `--twig/twig ~1.23
|  |  |     `--php >=5.2.7
|  |  |--sonata-project/datagrid-bundle ~2.2
|  |  |  |--php ^5.3 || ^7.0
|  |  |  |--symfony/dependency-injection ^2.3 || ^3.0
|  |  |  `--symfony/form ^2.3 || ^3.0
|  |  |--sonata-project/doctrine-extensions ~1.0
|  |  |  |--doctrine/dbal ~2.2
|  |  |  |  |--doctrine/common >=2.4,<2.8-dev
|  |  |  |  |  |--doctrine/annotations 1.*
|  |  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |  |--doctrine/cache 1.*
|  |  |  |  |  |  `--php ~5.5|~7.0
|  |  |  |  |  |--doctrine/collections 1.*
|  |  |  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |  |  |--doctrine/inflector 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  |  `--php >=5.3.2
|  |  |  |  |  `--php ~5.6|~7.0
|  |  |  |  `--php >=5.3.2
|  |  |  `--php >=5.3.2
|  |  |--sonata-project/easy-extends-bundle ~2.1
|  |  |  |--php ^5.3.2 || ^7.0
|  |  |  |--symfony/console ^2.1 || ^3.0
|  |  |  |--symfony/finder ^2.1 || ^3.0
|  |  |  `--symfony/framework-bundle ^2.1 || ^3.0
|  |  |--symfony/framework-bundle ~2.3|~3.0
|  |  `--zendframework/zenddiagnostics ~1.0
|  |     `--php >=5.3.3
|  `--symfony/symfony ~2.3
|     |--doctrine/common ~2.4
|     |  |--doctrine/annotations 1.*
|     |  |  |--doctrine/lexer 1.*
|     |  |  |  `--php >=5.3.2
|     |  |  `--php ^5.6 || ^7.0
|     |  |--doctrine/cache 1.*
|     |  |  `--php ~5.5|~7.0
|     |  |--doctrine/collections 1.*
|     |  |  `--php ^5.6 || ^7.0
|     |  |--doctrine/inflector 1.*
|     |  |  `--php >=5.3.2
|     |  |--doctrine/lexer 1.*
|     |  |  `--php >=5.3.2
|     |  `--php ~5.6|~7.0
|     |--php >=5.3.9
|     |--psr/log ~1.0
|     |  `--php >=5.3.0
|     |--symfony/polyfill-apcu ~1.1
|     |  `--php >=5.3.3
|     |--symfony/polyfill-intl-icu ~1.0
|     |  |--php >=5.3.3
|     |  `--symfony/intl ~2.3|~3.0
|     |--symfony/polyfill-mbstring ~1.0
|     |  `--php >=5.3.3
|     |--symfony/polyfill-php54 ~1.0
|     |  `--php >=5.3.3
|     |--symfony/polyfill-php55 ~1.0
|     |  |--ircmaxell/password-compat ~1.0
|     |  `--php >=5.3.3
|     |--symfony/polyfill-php56 ~1.0
|     |  |--php >=5.3.3
|     |  `--symfony/polyfill-util ~1.0
|     |     `--php >=5.3.3
|     |--symfony/polyfill-php70 ~1.0
|     |  |--paragonie/random_compat ~1.0|~2.0
|     |  |  `--php >=5.2.0
|     |  `--php >=5.3.3
|     |--symfony/polyfill-util ~1.0
|     |  `--php >=5.3.3
|     |--symfony/security-acl ~2.7|~3.0.0
|     |  |--php >=5.5.9
|     |  `--symfony/security-core ~2.8|~3.0
|     `--twig/twig ~1.28|~2.0
|        `--php >=5.2.7
|--stof/doctrine-extensions-bundle ~1.1@dev
|  |--gedmo/doctrine-extensions ^2.3.1
|  |  |--behat/transliterator ~1.0
|  |  |  `--php >=5.3.3
|  |  |--doctrine/common ~2.4
|  |  |  |--doctrine/annotations 1.*
|  |  |  |  |--doctrine/lexer 1.*
|  |  |  |  |  `--php >=5.3.2
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/cache 1.*
|  |  |  |  `--php ~5.5|~7.0
|  |  |  |--doctrine/collections 1.*
|  |  |  |  `--php ^5.6 || ^7.0
|  |  |  |--doctrine/inflector 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ~5.6|~7.0
|  |  `--php >=5.3.2
|  |--php >=5.3.2
|  `--symfony/framework-bundle ~2.1|~3.0
|--symfony/assetic-bundle ~2.3
|  |--kriswallsmith/assetic ~1.4
|  |  |--php >=5.3.1
|  |  `--symfony/process ~2.1|~3.0
|  |--php >=5.3.0
|  |--symfony/console ~2.3|~3.0
|  |--symfony/dependency-injection ~2.3|~3.0
|  |--symfony/framework-bundle ~2.3|~3.0
|  `--symfony/yaml ~2.3|~3.0
|--symfony/symfony >=2.6
|  |--doctrine/common ~2.4
|  |  |--doctrine/annotations 1.*
|  |  |  |--doctrine/lexer 1.*
|  |  |  |  `--php >=5.3.2
|  |  |  `--php ^5.6 || ^7.0
|  |  |--doctrine/cache 1.*
|  |  |  `--php ~5.5|~7.0
|  |  |--doctrine/collections 1.*
|  |  |  `--php ^5.6 || ^7.0
|  |  |--doctrine/inflector 1.*
|  |  |  `--php >=5.3.2
|  |  |--doctrine/lexer 1.*
|  |  |  `--php >=5.3.2
|  |  `--php ~5.6|~7.0
|  |--php >=5.3.9
|  |--psr/log ~1.0
|  |  `--php >=5.3.0
|  |--symfony/polyfill-apcu ~1.1
|  |  `--php >=5.3.3
|  |--symfony/polyfill-intl-icu ~1.0
|  |  |--php >=5.3.3
|  |  `--symfony/intl ~2.3|~3.0
|  |--symfony/polyfill-mbstring ~1.0
|  |  `--php >=5.3.3
|  |--symfony/polyfill-php54 ~1.0
|  |  `--php >=5.3.3
|  |--symfony/polyfill-php55 ~1.0
|  |  |--ircmaxell/password-compat ~1.0
|  |  `--php >=5.3.3
|  |--symfony/polyfill-php56 ~1.0
|  |  |--php >=5.3.3
|  |  `--symfony/polyfill-util ~1.0
|  |     `--php >=5.3.3
|  |--symfony/polyfill-php70 ~1.0
|  |  |--paragonie/random_compat ~1.0|~2.0
|  |  |  `--php >=5.2.0
|  |  `--php >=5.3.3
|  |--symfony/polyfill-util ~1.0
|  |  `--php >=5.3.3
|  |--symfony/security-acl ~2.7|~3.0.0
|  |  |--php >=5.5.9
|  |  `--symfony/security-core ~2.8|~3.0
|  `--twig/twig ~1.28|~2.0
|     `--php >=5.2.7
`--twig/extensions ~1.0
   `--twig/twig ~1.20|~2.0
      `--php >=5.2.7

As you can see, the problem is ed/blog-bundle v1.0.5 > sonata-project/doctrine-orm-admin-bundle ^2.3 > sonata-project/admin-bundle ~2.3@dev > sonata-project/block-bundle ~2.2,>=2.2.7,<2.3 > sonata-project/core-bundle ^2.2.1 > twig/twig ~1.23.

Postgres support?

Hey there!

Is this bundle incompatible with Postgres? I'm all the way through the installation process but Symfony is throwing an error:

An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT YEAR(published_at) as year, MONTH(published_at) as month, COUNT(*) as num
FROM blog_article
WHERE status = 'published'
GROUP BY YEAR(published_at), MONTH(published_at)
ORDER BY year DESC, month DESC':

SQLSTATE[42883]: Undefined function: 7 ERROR: function year(timestamp without time zone) does not exist
LINE 1: SELECT YEAR(published_at) as year, MONTH(published_at) as mo...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.").

I don't think year(timestamp) is a function in Postgres. So was this thing built exclusively for MySQL? Or is there a configuration setting I'm missing somewhere? Thank you!

EDIT
Narrowed it down to this model repository so far, which does indeed seem to be using MySQL-exclusive syntax.

Not a big deal to simply override the method in my own repository, but you guys might wanna give a heads up about it in the docs.

using with jms/serialize 1.1

Hi,

Is it possible tu use the bundle with symfony 3.1 and jms/serialize 1.1? I'm on symfony 3.1, and I can't use jms/serialize 0.13.0 as mentioned in your cinfig.json.

Thank you

Great Job!

This is a decent blog bundle I must say guys well done. I have already integrated it and replaced my shitty wordpress iframe.

I noticed you guys are using tinymce. I would like to suggest a conversion to ckeditor. I may try to do this on my fork when I get some time. The issue Im having with tinymce is I cant position image elements inline with text. The tinymce editor just doesnt seem to have enough options ?

Documentation needs update: Application\Sonata\ClassificationBundle not found

I just install the bundle and follow the doc.
But while executing php app/console as:du --env=prod
I get Application\Sonata\ClassificationBundle not found ...
I fixed it by following the#step-4-sonatamediabundle-installation-and-configuration
In Step 2 : #29-user-repository
There is a typo: AppUserRepository shoulld be UserRepository.

After those things, it is awesome!

It will be good to enable blog header and footer configuration.
Thanks!

Help me :)

Hello guys im new on symfony, some one can take one hour to help me to install this project please ?
i got vocal like discord or team speak, thanks :)

Error on step 3 : EDBlogBundle configuration

Hi, I followed all required steps, but Symfony throws me an error in the terminal :

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
You have requested a non-existent parameter "ed_blog". Did you mean this: "ed_blog.resolve_target_entities.config"?

The ED\BlogBundle is registered in the AppKernel file as well as all the other requested. All my entities (Article, Comment, Settings, ...) Are created in an other bundle which is also registered in the AppKernel.

Thanks for your help.

Doesn't work with Sylius

Hello,

We are currently using Sylius 1.0.4 with your bundle for our project, but are having a few problems. These are not problems directly linked to your bundle, but after implementation into our solution. We tried using the dev-symfony3 branch which fixes problems related to the composer.json, but are left with these :

  • Annotations: @ParamConverter("article", class="ED\BlogBundle\Interfaces\Model\ArticleInterface", converter="abstract_converter") This is an examplTThis is an example, but every ParamConverter crashes the application.
  • User (BlogUserInterface): we are using the Sylius User class and are having a problem with the parameter’s type. If we remove the consraint in your bundle it works fine.
    The only solution I have found at the moment is to modify your bundle directly, but I’m not satisfied with that solution for many reasons...

Do you have a better solution ?

I didn't know where to post this, but if you could help me I would be very grateful
Have a good day.

Blog Administration

Be careful when accessing the backend when you are blog admin : you can see the categories list but not the articles list.

You have to change : $user = $this->getBlogUser(); to $user = $this->getBlogAdministrator();

dev vs prod

I have inserted the bundle into my project and in the dev environment, everything is working great. The prod environment though has a 500 error on the admin-media-list page.
Here is the error:
[2015-12-01 04:52:27] request.CRITICAL: Uncaught PHP Exception Doctrine\ORM\Query\QueryException: "[Semantical Error] line 0, col 90 near 'hasMedias INNER': Error: Class Application\Sonata\MediaBundle\Entity\Media has no association named galleryHasMedias" at /home/xxx/public_html/dev/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 63 {"exception":"[object](Doctrine\ORM\Query\QueryException%28code: 0%29: [Semantical Error] line 0, col 90 near 'hasMedias INNER': Error: Class Application\Sonata\MediaBundle\Entity\Media has no association named galleryHasMedias at /home/xxx/public_html/dev/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:63, Doctrine\ORM\Query\QueryException%28code: 0): SELECT m FROM Application\Sonata\MediaBundle\Entity\Media m INNER JOIN m.galleryHasMedias hasMedias INNER JOIN hasMedias.gallery g WHERE g.name= :mediaGallery AND hasMedias.enabled = 1 AND m.enabled = 1 ORDER BY m.id DESC at /home/xxx/public_html/dev/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:41)"} []

Any help would be greatly appreciated.

I am facing issues to access post/edit aticles and gallery

An exception has been thrown during the rendering of a template ("[Semantical Error] line 0, col 139 near 'name= :mediaGallery': Error: Class Application\Sonata\MediaBundle\Entity\Gallery has no field or association named name").

In BlogBundle/Resources/views/Modals/add_media.html.twig at line 10

</div> <div class="modal-body"> <div class="text--bold dark-grey margin--b">Importer une photo de votre ordinateur ou choisissez dans la librairire multimedia et cliquez sur importer</div> {{ render(controller('EDBlogBundle:Backend/Article:mediaList')) }} </div> <div class="modal-footer"> <button type="button" class="btn btn-default flright js-close-insert-modal" data-dismiss="modal">Fermer</button>

Wrong classname

Hi, regarding ###2.9 User Repository configuration, in the code the classname should be UserRepository instead of class AppUserRepository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.