Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php+symfony] instalacja DoctrineFixturesBundle
dopelganger
post
Post #1





Grupa: Zarejestrowani
Postów: 236
Pomógł: 0
Dołączył: 27.10.2012

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


witam
mam problem z instalacją pakietu DoctrineFixturesBundle.

1) pobrałem źródło composer.phar z http://getcomposer.org/installer i wrzuciłem bezpośrednio na serwer jako plik: composer.phar (do katalogu gdzie mam Symfony2)

2) Dodałem kod do pliku composer.json
  1. {
  2. "require": {
  3. "doctrine/doctrine-fixtures-bundle": "2.2*"
  4. }
  5. }

ps. rozumiem, że dodaje to na sam koniec pliku po zawartości, która już tam jest?

3) Próbuje zrobić aktualizację:

  1. php composer.phar update


wyskakują błędy:

Downloading...
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:func(144):reason(134)
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Downloading...
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:func(144):reason(134)
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
Downloading...
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:func(144):reason(134)
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
The download failed repeatedly, aborting.



Może da się to jakoś ręcznie zainstalować? Męczy mnie to już :/
Proszę o pomoc.

Ten post edytował dopelganger 22.08.2014, 12:35:42
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
by_ikar
post
Post #2





Grupa: Zarejestrowani
Postów: 1 798
Pomógł: 307
Dołączył: 13.05.2009
Skąd: Gubin/Wrocław

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


Kod
/vendor/composer/autoload_namespaces.php


Dodaj sobie byleby nie na końcu linijkę:

  1. 'Doctrine\\Bundle\\FixturesBundle' => array($vendorDir . '/doctrine/doctrine-fixtures-bundle'),


Tak przykładowo wygląda cały plik autoload_namespaces.php po dodaniu doctrine-fixtures-bundle:

  1. <?php
  2.  
  3. // autoload_namespaces.php @generated by Composer
  4.  
  5. $vendorDir = dirname(dirname(__FILE__));
  6. $baseDir = dirname($vendorDir);
  7.  
  8. return array(
  9. 'Twig_Extensions_' => array($vendorDir . '/twig/extensions/lib'),
  10. 'Twig_' => array($vendorDir . '/twig/twig/lib'),
  11. 'Symfony\\Component\\Icu\\' => array($vendorDir . '/symfony/icu'),
  12. 'Symfony\\Bundle\\SwiftmailerBundle' => array($vendorDir . '/symfony/swiftmailer-bundle'),
  13. 'Symfony\\Bundle\\AsseticBundle' => array($vendorDir . '/symfony/assetic-bundle'),
  14. 'Symfony\\' => array($vendorDir . '/symfony/symfony/src'),
  15. 'SymfonyStandard' => array($baseDir . '/app'),
  16. 'Sensio\\Bundle\\GeneratorBundle' => array($vendorDir . '/sensio/generator-bundle'),
  17. 'Sensio\\Bundle\\FrameworkExtraBundle' => array($vendorDir . '/sensio/framework-extra-bundle'),
  18. 'Sensio\\Bundle\\DistributionBundle' => array($vendorDir . '/sensio/distribution-bundle'),
  19. 'SensioLabs\\Security' => array($vendorDir . '/sensiolabs/security-checker'),
  20. 'Psr\\Log\\' => array($vendorDir . '/psr/log'),
  21. 'Incenteev\\ParameterHandler' => array($vendorDir . '/incenteev/composer-parameter-handler'),
  22. 'Doctrine\\ORM\\' => array($vendorDir . '/doctrine/orm/lib'),
  23. 'Doctrine\\DBAL\\' => array($vendorDir . '/doctrine/dbal/lib'),
  24. 'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/lib'),
  25. 'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib'),
  26. 'Doctrine\\Common\\DataFixtures' => array($vendorDir . '/doctrine/data-fixtures/lib'),
  27. 'Doctrine\\Common\\Collections\\' => array($vendorDir . '/doctrine/collections/lib'),
  28. 'Doctrine\\Common\\Cache\\' => array($vendorDir . '/doctrine/cache/lib'),
  29. 'Doctrine\\Common\\Annotations\\' => array($vendorDir . '/doctrine/annotations/lib'),
  30. 'Doctrine\\Common\\' => array($vendorDir . '/doctrine/common/lib'),
  31. 'Doctrine\\Bundle\\FixturesBundle' => array($vendorDir . '/doctrine/doctrine-fixtures-bundle'),
  32. 'Doctrine\\Bundle\\DoctrineBundle' => array($vendorDir . '/doctrine/doctrine-bundle'),
  33. 'Assetic' => array($vendorDir . '/kriswallsmith/assetic/src'),
  34. '' => array($baseDir . '/src'),
  35. );


Wydaje mi się że openssl w twoim php.ini jest zakomentowany dlatego też masz takie błędy. Wpisz w konsoli
Kod
php -m

i sprawdź w liście załadowanych modułów czy znajduje się openssl, jeżeli nie, to w php.ini usuń średnik sprzed:
Kod
;extension=php_openssl.dll

Jeżeli to jest na windowsie, lub:
Kod
;extension=php_openssl.so

jeżeli to jest na unixie.
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 17.10.2025 - 04:33