composer-php

Composer & Symfony - Fatal error: Out of memory

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 20:17:18
问题 I'm running Symfony 3.4 LTS with composer. My website works fine, but when I try to update any bundle with : php composer.phar update # or php composer.phar update symfony/symfony # or php composer.phar update swiftmailer/swiftmailer I get this error : PHP Fatal error: Out of memory [...] in phar:/// [...] Below is what I have already tested : increase my memory_limit from 196M to 1024M run the composer.phar with php -d memory_limit = -1 .. with no success. What else could I try ? By the way,

Laravel error “Declaration of model/model_name should be compatible with Illuminate\Database\Eloquent\Model”

这一生的挚爱 提交于 2019-12-24 19:29:29
问题 i am facing a strange issue regarding laravel application. after updating the composer on my production server i am getting this error. My login page showing fine and when i am entering the credentials its showing this error either the credentials wrong or right its always showing the same error. Error is Declaration of App\Models\User::update($a_data = NULL, $a_conditions = NULL) should be compatible with Illuminate\Database\Eloquent\Model::update(array $attributes = Array, array $options =

composer require and use non-class file

我的未来我决定 提交于 2019-12-24 19:25:12
问题 I'm new to Composer and I just can't figure out on how to autoload non-class based files. I have tried adding the file to the files array in composer.json and then running composer install but I had no luck. My composer.json looks like: { "name": "app", "description": "", "require": { "mongodb/mongodb": "^1.2" }, "autoload":{ "files":["src/lib/config.php"] } } Here is the non-class based file, config.php $foo = "Hello"; And this is where I would call it: require_once("vendor/autoload.php");

laravel-spark-google2fa Provider class not found after Spark update to v9.0

帅比萌擦擦* 提交于 2019-12-24 18:47:55
问题 I recently updated a Laravel/Spark web application to the latest version of Spark (v 9.* ) via composer . Another package I use is Laravel-Spark-Google2FA which I also updated from v 1.* to v 2.* . Setup: The laravel-spark-google2fa package has a Laravel service provider class that resides in /project-root/laravel/spark/src/Providers/Google2FAServiceProvider.php In Laravel we specify this in /project-root/laravel/config/app.php with the following line in the providers array: Laravel\Spark

Install Security-acl inside Symfony 4

拥有回忆 提交于 2019-12-24 18:40:27
问题 Trying to make this command work while I'm getting the error : php bin/console init:acl Symfony init:acl command missing I found this stack issue answering: Symfony init:acl command missing Problem is, when I try to composer require symfony/security-acl I'm getting [InvalidArgumentException] Could not find package symfony/security-acl in a version matching 4.3.* Which seems to be normal as acl support were removed from Symfony 4 and even 3 I think. But still, it seems to be possible to use it

php error at runtime Interface 'Psr\Container\ContainerInterface' not found

走远了吗. 提交于 2019-12-24 18:40:07
问题 I recently uploaded a new dependency to a PHP app I am working on and I am now continually getting the following error in Postman Fatal error : Interface 'Psr\Container\ContainerInterface' not found in /var/www/html/api/vendor/container-interop/container-interop/src/Interop/Container/ContainerInterface.php on line 13 I have updated composer as well as a multitude of other things and still cannot seem to pinpoint the issue. (Also not sure if it means the error is with the index.php file or the

PHP Fatal error: Class 'Twig\\Extension\\AbstractExtension' not found

冷暖自知 提交于 2019-12-24 17:29:47
问题 I've tried updating Symfony to v2.8.* today. I have this error: Fatal error: Class 'Twig\Extension\AbstractExtension' not found Please help Here my composer json : "name": "assane/myecomapp", "license": "proprietary", "type": "project", "autoload": { "psr-4": { "": "src/" }, "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] }, "require": { "php": ">=5.3.9", "symfony/symfony": "2.8.*", "doctrine/orm": "^2.4.8", "doctrine/doctrine-bundle": "~1.4", "symfony/swiftmailer-bundle": "~2.3,>=2.3

Is Packagist the only library/repository of packages that Composer natively pulls from?

余生颓废 提交于 2019-12-24 17:21:13
问题 Is Packagist (https://packagist.org/) the only repository/library of packages that Composer pull from out of the box? I know that Composer can be configured to point to other libraries of packages, including in-house setups using Satis or other tools. But I am curious if it will scan other libraries, such as Packalyst. I have been doing a lot of searching and have not found a clear answer to this question. I highly suspect that Packagist is the only library that Composer connects to by

PHP composer autoloader does'nt work on production server

[亡魂溺海] 提交于 2019-12-24 17:17:27
问题 I implemented an autoloader. Locally, everything works fine, but once i upload it to the production server, all classes are not found. { "require": { "facebook/php-sdk": "@stable", "everyman/neo4jphp": "dev-master", "predis/predis": "1.0.1", "aws/aws-sdk-php": "2.*" }, "autoload": { "psr-0": { "PicoCore\\": "", "PicoCore\\Authentication\\" : "PicoCore/authentication", "PicoCore\\Aws\\" : "PicoCore/aws", "PicoCore\\Cache\\" : "PicoCore/cache", "PicoCore\\Database\\" : "PicoCore/database",

Composer is not reading my local Satis packages.json file

倖福魔咒の 提交于 2019-12-24 15:27:13
问题 I have setup my local SVN repo to hold all external repos ( company policy ), using Satis I've created the packages.json file. when I run composer update how do I tell it to use my custom packages.json file and pull from my local repo instead of externals? This is a blurb from the packages.json file on where my svn repos are: "source": { "type": "svn", "url": "http://blah/packagist/foo/bar", "reference": "/tags/2.3.0/@38" } but the url I would use to check this project out would be: http:/