symfony-cmf

“An error occured when executing the cache:clear --no-warmup” while installing symfony-cmf-standard

独自空忆成欢 提交于 2020-01-12 07:18:03
问题 I was trying to install symfony-cmf-standard using: composer.phar create-project symfony-cmf/standard-edition symfony-cmf-standard/ --stability=dev But I am getting the following error: Could not open input file: app/console Script sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception [RuntimeException] An error occured when executing the cache:clear --no-warmup I am running the command as an Administrator so it

Symfony CMF StaticContent show all child blocks in PHPCTRee?

拟墨画扇 提交于 2020-01-05 08:39:42
问题 Does anybody know how I can make all child blocks show up on the CMF Tree in the Sonata Admin for the StaticContent class? The way our system uses the Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent class is to just use it as a content document that we can attach other blocks to. I thought that was the purpose of the ContentBundle . Instead only blocks inside of this additionalInfoBlock container block appear in the tree. Unless I am doing something wrong. I have looked at

Nested Routes with RoutingAutoBundle (Symfony CMF)

a 夏天 提交于 2019-12-13 18:56:25
问题 I imagine this is a simple enough thing. I just want to use the RoutingAutoBundle for nested pages. I'm following along here http://symfony.com/doc/current/cmf/cookbook/creating_a_cms/ Say I have Page documents which have a parent. /** * * @PHPCR\Document(referenceable=true) * * @author Matt Durak <mattdurak@gmail.com> */ class Page implements RouteReferrersReadInterface { /** * @PHPCR\Id() */ protected $id; /** * @PHPCR\ParentDocument() */ protected $parent; //... /** * Get ID * * @return

Deploying Symfony-CMF project to Heroku

拜拜、爱过 提交于 2019-12-12 06:22:40
问题 I currently following CMF docs to create a project : https://symfony.com/doc/master/cmf/tutorial/introduction.html As i continue on Tutorial, i like to push the project to heroku. But i ran in to a problem when i need to have database connection. Than i found this source : https://coderwall.com/p/qpitzq/deploing-symfony-project-using-mysql-to-heroku That helped but i need to configure also 'phpcr_backend' parameters. I set them on console: heroku config:set phpcr_backend=[type:doctrinedbal

Symfony 4 routing from DB

北城以北 提交于 2019-12-11 14:36:27
问题 I'm creating a simple CMS with Symfony 4. Where it it's possible to create pages. When creating a page a Doctrine EvenSubscriber is being called. This subscriber creates an PageRoute . <?php #src/Doctrine/EvenListener /** * PageRouteSubscriber */ namespace App\Doctrine\EventListener; use App\Controller\PageController; use App\Entity\Page; use App\Entity\Route; use Doctrine\Common\EventSubscriber; use Doctrine\Common\Persistence\Event\LifecycleEventArgs; /** * Class PageRouteSubscriber *

Implementation for configureRoute() of AnnotationClassLoader

。_饼干妹妹 提交于 2019-12-11 06:11:03
问题 In my Symfony 3.2 app, I create a custom router that extends from Symfony\Bundle\FrameworkBundle\Routing\Router . As required, it implements a getRouteCollection() method: public function getRouteCollection() { $locator = new FileLocator(__DIR__ . '/../Controller'); $annotationReader = new Doctrine\Common\Annotations\AnnotationReader(); $classLoader = new AnnotationClassLoader($annotationReader); $routeLoader = new Symfony\Component\Routing\Loader\AnnotationDirectoryLoader($locator,

SymfonyCMF RoutingBundle Doctrine PHPCR configuration error

夙愿已清 提交于 2019-12-10 12:17:40
问题 i'm following the tutorial Creating a Basic CMS but after configurate the CMF RoutingBundle like it's shown in Enable the Dynamic Router i got the following error when i try to load the fixture data PHP Catchable fatal error: Argument 2 passed to Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer::__construct() must be of the type array, none given here is my config.yml cmf_routing: chain: routers_by_id: cmf_routing.dynamic_router: 20 router.default: 100 dynamic: enabled: true

“An error occured when executing the cache:clear --no-warmup” while installing symfony-cmf-standard

寵の児 提交于 2019-12-03 12:02:46
I was trying to install symfony-cmf-standard using: composer.phar create-project symfony-cmf/standard-edition symfony-cmf-standard/ --stability=dev But I am getting the following error: Could not open input file: app/console Script sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception [RuntimeException] An error occured when executing the cache:clear --no-warmup I am running the command as an Administrator so it should not be a permission issue. It gives error as when we use the command, composer.phar create-project