Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Symfony2][SF]DoctrineFixturesBundle
ShaggyAG
post 28.07.2015, 09:14:14
Post #1





Grupa: Zarejestrowani
Postów: 111
Pomógł: 11
Dołączył: 12.10.2014
Skąd: Tarnów

Ostrzeżenie: (0%)
-----


Witam,

Mam problem z dodaniem pakietu DoctrineFixturesBundle.
Jak to wygląda...
Robię nowy projekt Symfony:
  1. php new symfony projekt1

jest ok
ładuje do folderu composer.phar
plik composer.json edytuje(jest pusty) i dodaje
  1. {
  2. "require": {
  3. "doctrine/doctrine-fixtures-bundle": "dev-master"
  4. }
  5. }

następnie robie
  1. php composer.phar update

i tu jest problem bo pakiet instaluje ale usuwa wszystkie inne
  1. - Removing monolog/monolog (1.15.0)
  2. - Removing sensio/generator-bundle (v2.5.3)
  3. - Removing symfony/swiftmailer-bundle (v2.3.8)
  4. - Removing swiftmailer/swiftmailer (v5.4.1)
  5. - Removing symfony/monolog-bundle (v2.7.1)
  6. - Removing symfony/assetic-bundle (v2.6.1)
  7. - Removing kriswallsmith/assetic (v1.2.1)
  8. - Removing sensio/framework-extra-bundle (v3.0.9)
  9. - Removing sensio/distribution-bundle (v4.0.0)
  10. - Removing sensiolabs/security-checker (v2.0.5)
  11. - Removing incenteev/composer-parameter-handler (v2.1.1)
  12. - Removing doctrine/orm (v2.4.7)
  13. - Removing doctrine/dbal (v2.4.4)
  14. - Installing doctrine/dbal (v2.5.1)


Gdzie robię błąd?
Rozumiem ze composer.json nie powinien być na początku pusty?
z góry dziękuje za pomoc.

Ten post edytował ShaggyAG 28.07.2015, 09:18:30
Go to the top of the page
+Quote Post
Damonsson
post 28.07.2015, 09:23:53
Post #2





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


zdecydowanie composer.json nie powinien być pusty. Pytanie, jak to robisz, że jest? biggrin.gif
Go to the top of the page
+Quote Post
Forti
post 28.07.2015, 09:30:24
Post #3





Grupa: Zarejestrowani
Postów: 655
Pomógł: 73
Dołączył: 2.05.2014

Ostrzeżenie: (0%)
-----


  1. $ php symfony new projekt1 // konsola


composer.json nie powinien być pusty. Jeżeli jest spróbuj update instalatora symfony. Jak nie to po prostu pobierz nowy projekt z github.. może jakiegoś buga masz. symfony self-update też spróbuj.


--------------------
Overwatch24 - najbardziej zaawansowany Polski portal Overwatch od fanów dla fanów.

Fachowo.co

Behance.net/fachowo
Go to the top of the page
+Quote Post
ShaggyAG
post 28.07.2015, 09:49:25
Post #4





Grupa: Zarejestrowani
Postów: 111
Pomógł: 11
Dołączył: 12.10.2014
Skąd: Tarnów

Ostrzeżenie: (0%)
-----


Nie mam pojęcia jak to zrobiłem że jest pusty.
Update instalki nie pomogło ale podmieniłem plik composer.json z plikiem z githuba i działa.
Dziękuje
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 25.04.2024 - 00:50