I am trying to make symfony project cms1 and install CMS bundles to it:
cd to folder where the symfony is installed
create project: c:\> php symfony.phar new cmf1
run the project: $ cd .\cmf1
$php app/console server:run
GO TO : http://127.0.0.1:8000
or go to URL: http://localhost:8000/
To this point everything is working
According
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html
i add line to :
C:\Bitnami\wamp stack-5.4.38-0\sym_prog\cms1 \composer.json
I am getting the ERROR:
Solution 1. Added line to composer.json – does not work
C:\Bitnami\wamp stack-5.4.38-0\sym_prog\cms1 \composer.json
There is coming an error, that package “doctrine/phpcr-bundle" does not exists.
Solution: i added many bundles:
Budles for symfony-cmf according https://packagist.org/packages/symfony-cmf/symfony-cmf
"doctrine/phpcr-bundle": "~1.2",
"doctrine/phpcr-odm": "1.2.*",
"symfony-cmf/core-bundle": "1.2.*",
"symfony-cmf/content-bundle": "1.2.*",
"symfony-cmf/menu-bundle": "1.2.*",
"symfony-cmf/block-bundle": "1.2.*",
"symfony-cmf/routing-bundle": "1.3.*",
"symfony-cmf/media-bundle": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
Budles for doctrine/phpcr-bundle according
https://packagist.org/packages/doctrine/phpcr-bundle:
https://packagist.org/packages/jackalope/jackalope
"symfony/doctrine-bridge": "~2.3",
"phpcr/phpcr-implementation" : "2.1.*", // it is not a separate bundle it comes with jakalope
"phpcr/phpcr-utils": "~1.2.*",
"phpcr/phpcr": "~2.1",
"jackalope/jackalope-doctrine-dbal": "~1.2.2",
"jackalope/jackalope": "1.2.3", //requires “jacalope/jakapole-transport”, which is part of “jackalope/jackalope-doctrine-dbal” and requires "doctrine/dbal"
"doctrine/dbal": "~2.4.5",
"doctrine/phpcr-bundle": "~1.3",
"doctrine/phpcr-bundle": "~1.3", //instead of 2.4
Finally my composer.json looks like this:
I am still getting an error that:
As it is described above "jackalope/jackalope" “jacalope/jakapole-transport”, which is part of “jackalope/jackalope-doctrine-dbal” and requires "doctrine/dbal". All these packages are added to the composer.json
What packages i need to install symfony-cmf, better with development mode?
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html
cd to folder where the symfony is installed
create project: c:\> php symfony.phar new cmf1
run the project: $ cd .\cmf1
$php app/console server:run
GO TO : http://127.0.0.1:8000
or go to URL: http://localhost:8000/
To this point everything is working
According
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html
i add line to :
C:\Bitnami\wamp stack-5.4.38-0\sym_prog\cms1 \composer.json
Code:
"require": {
...
"symfony-cmf/symfony-cmf": "1.2.*"
}
Code:
c:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/phpcr-bundle 1.2.4 requires phpcr/phpcr-implementation 2.1.* -> n
o matching package found.
- doctrine/phpcr-bundle 1.2.3 requires phpcr/phpcr-implementation 2.1.* -> n
o matching package found.
- doctrine/phpcr-bundle 1.2.2 requires phpcr/phpcr-implementation 2.1.* -> n
o matching package found.
- doctrine/phpcr-bundle 1.2.1 requires phpcr/phpcr-implementation 2.1.* -> n
o matching package found.
- doctrine/phpcr-bundle 1.2.0 requires phpcr/phpcr-implementation 2.1.* -> n
o matching package found.
- symfony-cmf/symfony-cmf 1.2.0 requires doctrine/phpcr-bundle 1.2.* -> sati
sfiable by doctrine/phpcr-bundle[1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4].
- Installation request for symfony-cmf/symfony-cmf 1.2.* -> satisfiable by s
ymfony-cmf/symfony-cmf[1.2.0].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.
C:\Bitnami\wamp stack-5.4.38-0\sym_prog\cms1 \composer.json
Code:
"require": {
"doctrine/phpcr-bundle": "~2.4",
"symfony-cmf/symfony-cmf": "1.2.*",
Code:
c:\Bitnami\wampstack-5.4.38-0\sym_prog\cms1>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package doctrine/phpcr-bundle could not be found in any vers
ion, there may be a typo in the package name.
Problem 2
- Installation request for symfony-cmf/symfony-cmf 1.2.* -> satisfiable by s
ymfony-cmf/symfony-cmf[1.2.0].
- symfony-cmf/symfony-cmf 1.2.0 requires doctrine/phpcr-bundle 1.2.* -> no m
atching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.
Budles for symfony-cmf according https://packagist.org/packages/symfony-cmf/symfony-cmf
"doctrine/phpcr-bundle": "~1.2",
"doctrine/phpcr-odm": "1.2.*",
"symfony-cmf/core-bundle": "1.2.*",
"symfony-cmf/content-bundle": "1.2.*",
"symfony-cmf/menu-bundle": "1.2.*",
"symfony-cmf/block-bundle": "1.2.*",
"symfony-cmf/routing-bundle": "1.3.*",
"symfony-cmf/media-bundle": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
Budles for doctrine/phpcr-bundle according
https://packagist.org/packages/doctrine/phpcr-bundle:
https://packagist.org/packages/jackalope/jackalope
"symfony/doctrine-bridge": "~2.3",
"phpcr/phpcr-implementation" : "2.1.*", // it is not a separate bundle it comes with jakalope
"phpcr/phpcr-utils": "~1.2.*",
"phpcr/phpcr": "~2.1",
"jackalope/jackalope-doctrine-dbal": "~1.2.2",
"jackalope/jackalope": "1.2.3", //requires “jacalope/jakapole-transport”, which is part of “jackalope/jackalope-doctrine-dbal” and requires "doctrine/dbal"
"doctrine/dbal": "~2.4.5",
"doctrine/phpcr-bundle": "~1.3",
"doctrine/phpcr-bundle": "~1.3", //instead of 2.4
Finally my composer.json looks like this:
Code:
{
"name": "gintare/cms1",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
}
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.2",
"doctrine/dbal": "~2.4.5",
"doctrine/data-fixtures": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"symfony/doctrine-bridge": "~2.3",
"phpcr/phpcr-utils": "~1.2",
"phpcr/phpcr": "~2.1",
"jackalope/jackalope-doctrine-dbal": "~1.2.2",
"jackalope/jackalope": "1.2.3",
"doctrine/phpcr-bundle": "~1.2",
"doctrine/phpcr-odm": "1.2.*",
"symfony-cmf/core-bundle": "1.2.*",
"symfony-cmf/content-bundle": "1.2.*",
"symfony-cmf/menu-bundle": "1.2.*",
"symfony-cmf/block-bundle": "1.2.*",
"symfony-cmf/routing-bundle": "1.3.*",
"symfony-cmf/media-bundle": "1.2.*",
"symfony-cmf/symfony-cmf": "1.2.*",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
Code:
- jackalope/jackalope 1.2.3 requires jackalope/jackalope-transport * -> no matching package found.
What packages i need to install symfony-cmf, better with development mode?
http://symfony.com/doc/current/cmf/cookbook/editions/cmf_core.html