luyadev / luya-composer Goto Github PK
View Code? Open in Web Editor NEWThe LUYA Composer Plugin.
Home Page: https://luya.io
License: MIT License
The LUYA Composer Plugin.
Home Page: https://luya.io
License: MIT License
Store all luya packages in the installer.php, whether they have extra data or not. This allows us to provide a list of extensions inside the admin ui.
related discussion: luyadev/luya#1694
Now (as expected) its not possible to provide "luya cms" in a base repository, as its not in the "root" composer.json, which will be ignored for installer.php
https://github.com/luyadev/luya-composer/blob/master/src/Installer.php#L127
Ability to provide extra section with blocks or a folder which will be imported when the import command runs.
This will the ability to add blocks like a plugin without adding a module.
HP Fatal error: Uncaught TypeError: Argument 1 passed to luya\composer\Plugin::ensureLuyaExtraSectionSymlinkIsDisabled() must be an instance of Composer\Package\Package, instance of Composer\Package\RootAliasPackage given, called in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php on line 102 and defined in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php:126
Stack trace:
#0 /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php(102): luya\composer\Plugin->ensureLuyaExtraSectionSymlinkIsDisabled(Object(Composer\Package\RootAliasPackage))
#1 [internal function]: luya\composer\Plugin->postUpdateScript(Object(Composer\Script\Event))
#2 phar:///home/travis/.phpenv/versions/7.1.11/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#3 phar:///home/travis/.phpenv/versions/7.1.11/bin/composer/src/Composer/EventDispatcher/EventDispatch in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php on line 126
Fatal error: Uncaught TypeError: Argument 1 passed to luya\composer\Plugin::ensureLuyaExtraSectionSymlinkIsDisabled() must be an instance of Composer\Package\Package, instance of Composer\Package\RootAliasPackage given, called in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php on line 102 and defined in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php:126
Stack trace:
#0 /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php(102): luya\composer\Plugin->ensureLuyaExtraSectionSymlinkIsDisabled(Object(Composer\Package\RootAliasPackage))
#1 [internal function]: luya\composer\Plugin->postUpdateScript(Object(Composer\Script\Event))
#2 phar:///home/travis/.phpenv/versions/7.1.11/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#3 phar:///home/travis/.phpenv/versions/7.1.11/bin/composer/src/Composer/EventDispatcher/EventDispatch in /home/travis/build/luyadev/luya-module-contactform/vendor/luyadev/luya-composer/src/Plugin.php on line 126
The command "composer install --prefer-dist --no-interaction" exited with 255.
Add new option to luya config to ignore symlink creating, this can be helpfull when developing console commands with LUYA core.
When i run the import command on windows 10, it only import 2 blocks, while bootstrap, generic and module-cms failed to import
The errors i get are :
"Unable to process block definition 'vendor\luyadev\luya-bootstrap3\src\blocks'"
"Unable to process block definition 'vendor\luyadev\luya-generic\src\blocks'"
"Unable to process block definition 'vendor\luyadev\luya-module-cms\src\frontend\blocks'"
this is the output :
PS C:\xampp\htdocs\dashboard\luya-kickstarter> php luyacheck.php PHP Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22) : eval()'d code:1
Stack trace:
#0 C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22): eval()
#1 {main}
thrown in C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22) : eval()'d code on line 1
Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22) : eval()'d code:1
Stack trace:
#0 C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22): eval()
#1 {main}
thrown in C:\xampp\htdocs\dashboard\luya-kickstarter\luyacheck.php(22) : eval()'d code on line 1
Q | A |
---|---|
LUYA Version | 1.0.24 |
PHP Version | 7.3.11 |
Platform | XAMPP |
Operating system | Windows. |
Replace / with \ on windows systems instead of using {{DS}}
problem on windows systems: https://github.com/luyadev/luya-kickstarter/issues/36#issue-393824578
If a package is in the require-dev section, the information should not be added to the installer.php this might make some problems with no-dev dependencies are used in production envs (or phar builder).
while import command
Unable to process block definition 'vendor\luyadev/luya-bootstrap3\src/blocks'
Unable to process block definition 'vendor\luyadev/luya-generic\src/blocks'
Unable to process block definition 'vendor\luyadev/luya-module-cms\src/frontend/blocks'
only 2 block success
how to resolve this issues
When creating a luya project, the luya
symlink in the project directory is created as an absolute path, e.g.:
$ ls -la |grep luya
lrwxrwxrwx 1 cebehosting cebehosting 61 Nov 7 09:40 luya -> /home/cebe/dev/cebe.cc/luya/vendor/luyadev/luya-core/bin/luya
when deploying this repo to a production environment, the link is not correct anymore. ideally it should be created relative to the current path:
luya -> vendor/luyadev/luya-core/bin/luya
the code for this is here:
Lines 57 to 59 in 7cd5ceb
PHP Fatal error: Class luya\composer\Plugin contains 2 abstract methods an
d must therefore be declared abstract or implement the remaining methods (C
omposer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface
::uninstall)
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.