auraphp / aura.project_kernel Goto Github PK
View Code? Open in Web Editor NEWA generic project kernel.
License: BSD 2-Clause "Simplified" License
A generic project kernel.
License: BSD 2-Clause "Simplified" License
Composer has release version 2.0 and with it follows a new format for installed.json.
vendor/composer/installed.json format changed:
packages are now wrapped into a "packages" top level key instead of the whole file being the package array packages now contain an "installed-path" key which lists where they were installed there is a top level "dev" key which stores whether dev requirements were installed or not
This new format breaks project kernel:
PHP Warning: Uncaught TypeError: Argument 4 passed to Aura\Project_Kernel\Project::__construct() must be of the type array, object given, called in /var/www/test/vendor/aura/project-kernel/src/Factory.php on line 122 and defined in /var/www/test/vendor/aura/project-kernel/src/Project.php:79
Stack trace:
#0 /var/www/test/vendor/aura/project-kernel/src/Factory.php(122): Aura\Project_Kernel\Project->__construct()
#1 /var/www/test/vendor/aura/project-kernel/src/Factory.php(82): Aura\Project_Kernel\Factory->newProject()
#2 /var/www/test/vendor/aura/project-kernel/src/Factory.php(48): Aura\Project_Kernel\Factory->newContainer()
#3 /var/www/test/web/index.php(15): Aura\Project_Kernel\Factory->newKernel()
#4 php shell code(1): include('/var/www/test...')
#5 {main}
thrown in /var/www/test/vendor/aura/project-kernel/src/Project.php on line 79
https://github.com/auraphp/Aura.Project_Kernel/blob/2.x/src/Project.php#L79
Composer version 2.0.8 2020-12-03 17:20:38
Update composer via: composer selfupdate --snapshot
Run composer update
why 'bundle' was added? i hope it is not a symfony bundle wondering about the reason this was added.
@koriym
I'd like to send a PR if I am allowed to fix Issue#13 into 2.x
branch, like PR14.
#13 has already been fixed into 4.x (PR#15), but I still use the project with 2.x.
It is because the framework I'm using still depends on 2.x. In other words, bear/package needs aura/cli
^2.2
at present.
Then I can't upgrade this package in my project now.
On the other hand, I was concerned that probably releasing 2.x is unnecessary because the 2.x series doesn't support active PHP versions.
Please give me your opinion.
hello,
In "https://github.com/auraphp/Aura.Project_Kernel/blob/develop-2/src/ProjectContainer.php" I see this part of code $file = "{$base}/vendor/composer/installed.json";
Perhaps you don't know but in composer you can specified the name of "vendor" directory. For me I always call him "library"...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.