PhpStorm Sympfony

0

Error:
C:\wamp64\bin\php\php7.0.10\php.exe C:\Users\Root\PhpstormProjects\untitled2\composer.phar require friendsofsymfony/rest-bundle:2.1.1 -n --no-progress
./composer.json has been updated
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 doctrinec/orm could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package doctrine/dotrine-cache-bundle could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

W Tools->AddDependency próbuje zainstalować: friendsofsymfony/rest-bundle
Jak to naprawić, miałby ktoś pomysł?
Z góry dziękuję

2

Masz literówkę w nazwie pakietu doctrinec/orm powinno być doctrine/orm. W drugim też, ma być doctrine/doctrine-cache-bundle. Poprawki wprowadzaj w pliku composer.json.

0

Próbuję zainstalować doctrine/mongodb-odm oraz doctrine/mongodb-odm-bundle i pojawia się error:
Zainstalwałem już alcaeus/mongo-php-adapter

C:\wamp64\bin\php\php7.0.10\php.exe C:\Users\Root\PhpstormProjects\untitled2\composer.phar require doctrine/mongodb-odm:1.2.x-dev -n --no-progress
./composer.json has been updated
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
- Removal request for alcaeus/mongo-php-adapter == 1.1.9999999.9999999-dev
- Removal request for alcaeus/mongo-php-adapter == 9999999-dev
- doctrine/mongodb-odm 1.2.x-dev requires doctrine/mongodb ^1.4.0 -> satisfiable by doctrine/mongodb[1.4.0].
- doctrine/mongodb 1.4.0 requires ext-mongo ^1.5 -> satisfiable by alcaeus/mongo-php-adapter[1.1.x-dev, dev-master].
- Installation request for doctrine/mongodb-odm 1.2.x-dev -> satisfiable by doctrine/mongodb-odm[1.2.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
- C:\wamp64\bin\php\php7.0.10\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

Piszę że aby uruchomić rozszerzenia trzeba zweryfikować czy są dostępne w .ini
//C:\wamp64\bin\php\php7.0.10\php.ini

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; ... or with a path:
;
; extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+)
; extension folders as well as the separate PECL DLL download (PHP 5+).
; Be sure to appropriately set the extension_dir directive.
;
**extension=php_mongodb.dll // -------------- i to jest "enable' co jeszcze nalezy pozmieniac? **:(

1

Ciężko powiedzieć, nigdy nie bawiłem się w takie rzeczy na Windowsie. Na pierwszy rzut oka ścieżka do php_mongodb.dll jest zła lub nie zrestartowałeś serwera po zmianie konfiguracji. Może spróbuj tak jak opisują to tutaj: http://www.pronique.com/blog/installing-mongodb-on-windows-the-wamp-way

1 użytkowników online, w tym zalogowanych: 0, gości: 1