jfoucher / Mailocal

A local SMTP server with email display, used mostly for development of other apps. Think unlimited Mailtrap that runs on your own computer.
MIT License
74 stars 13 forks source link

Installation fail – symfony-cmd: command not found #53

Open kudlav opened 2 years ago

kudlav commented 2 years ago
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
18 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php -r "copy('.env.example', '.env');"
> symfony-cmd
sh: symfony-cmd: command not found
Script symfony-cmd handling the auto-scripts event returned with error code 127
Script @auto-scripts was called via post-install-cmd

Composer version 2.2.9 2022-03-15 22:13:37 PHP 7.4

When I try to run the bin/mailocal, then I'm getting error and I am unable to run the app:

In DefinitionErrorExceptionPass.php line 54:
In DefinitionErrorExceptionPass.php line 54:

  Cannot autowire service "App\Command\PostfixReceiveCommand": argument "$name" of method "__con  

  struct()" is type-hinted "string", you should configure its value explicitly.                   

  Cannot autowire service "App\Command\PostfixReceiveCommand": argument "$name" of method "__con  
  struct()" is type-hinted "string", you should configure its value explicitly.                   
jfoucher commented 2 years ago

I know, I've started to refactor mailocal with Symfony 6 and composer 2, but it is more work than I anticipated. Can you take a look at the feature/symfony6 https://github.com/jfoucher/Mailocal/tree/feature/symfony6 branch see if that works better for you ?

Le lun. 28 mars 2022 à 14:11, Vladan Kudláč @.***> a écrit :

Generating autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class 18 packages you are using are looking for funding. Use the composer fund command to find out more!

@php -r "copy('.env.example', '.env');" symfony-cmd sh: symfony-cmd: command not found Script symfony-cmd handling the auto-scripts event returned with error code 127 Script @auto-scripts was called via post-install-cmd

Composer version 2.2.9 2022-03-15 22:13:37 PHP 7.4

When I try to run the bin/mailocal, then I'm getting error and I am unable to run the app:

In DefinitionErrorExceptionPass.php line 54: In DefinitionErrorExceptionPass.php line 54:

Cannot autowire service "App\Command\PostfixReceiveCommand": argument "$name" of method "__con

struct()" is type-hinted "string", you should configure its value explicitly.

Cannot autowire service "App\Command\PostfixReceiveCommand": argument "$name" of method "__con struct()" is type-hinted "string", you should configure its value explicitly.

— Reply to this email directly, view it on GitHub https://github.com/jfoucher/Mailocal/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFDT3XC4KJ53IL45ZN4B3VCGOW7ANCNFSM5R254ELA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Jonathan Foucher tel : 06 95 65 55 65 https://jfoucher.com