phalcon-micro-rest-api-skeleton icon indicating copy to clipboard operation
phalcon-micro-rest-api-skeleton copied to clipboard

Using this skeleton with Phalcon 4

Open amsharma9 opened this issue 3 years ago • 0 comments

Hi,

I am unable to get this skeleton to work with Phalcon 4.1.0 on my 64bit Windows 10 machine using Wampserver. It shows me errors in most initialization files as given below:

  • In config\services.php it says Undefined Phalcon\Di\FactoryDefault() $di = new FactoryDefault();

  • In config\acl.php it says Undefined Phalcon\Acl $acl->setDefaultAction(Phalcon\Acl::DENY);

  • In public\index.php $app = new Micro($di);

Do I have to run composer to complete the installation? Do I need to update the composer.json file for newer versions of Phalcon. I assume I will to update it. What do I specify in the dependencies? composer update gives below errors on command prompt:

  Problem 1
    - phalcon/devtools[v3.2.0, ..., v3.2.13] require ext-phalcon ~3.1 -> it has the wrong version installed (4.1.0).
    - phalcon/devtools[v3.4.0, ..., v3.4.14] require ext-phalcon ~3.3 -> it has the wrong version installed (4.1.0).
    - Root composer.json requires phalcon/devtools ^3.2 -> satisfiable by phalcon/devtools[v3.2.0, ..., v3.4.14].

Phalcon 4.1.0. is installed and shown by phpinfo(). I am using Php 7.4.26 and Apache 2.4.51. TIA.

Regards Amal

amsharma9 avatar Aug 17 '22 21:08 amsharma9