polygram/phpcr-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

polygram/phpcr-bundle

Composer 安装命令:

composer require polygram/phpcr-bundle

包简介

PHPCR Bundle - still in dev

README 文档

README

##This bundle is a test project for PHPCR

  1. To install first add the following to composer.json
    "polygram/phpcr-bundle": "dev-master"
  1. Run

    "composer update"

    It should also install the bundle dependencies

    "require": {
        "jackalope/jackalope-jackrabbit": "1.0.*",
        "doctrine/phpcr-bundle": "1.0.*",
        "doctrine/phpcr-odm": "1.0.*",
        "doctrine/doctrine-fixtures-bundle": "dev-master"        
    }
  2. Add the following line, immediately after the last AnnotationRegistry::registerFile line:

AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php');
  1. Initialize the bundles in AppKernel.php
new Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new polygram\PHPCRBundle\polygramPHPCRBundle(),
  1. Add the following to your config.yml
  doctrine_phpcr:
        session:
            backend:
                type: jackrabbit
                url: http://127.0.0.1:8080/server/
            workspace: default
            username: admin
            password: admin
        odm:
            auto_mapping: true
            auto_generate_proxy_classes: %kernel.debug%
  1. Download and Run Jackrabbit
    wget http://apache.online.bg/jackrabbit/2.4.3/jackrabbit-standalone-2.4.3.jar
    java -jar jackrabbit-standalone-*.jar
  1. Register node types
    app/console doctrine:phpcr:register-system-node-types
  1. Install the fixtures
    app/console doctrine:phpcr:fixtures:load
    then run:
    app/console doctrine:phpcr:dump
    to see the result

TODO

  1. List the repository content in the default controller
  2. Extends the example to use the other 2 CR backends
  3. Make test on which parts of the PHPCR specification are supported

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Not
  • 更新时间: 2012-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固