Symfony 5 support planed? - sonata-admin

i work on symfony 5 and i wanne use sonata admin like in all other projects. Is there any upcoming release planed, that sonata admin is installable under symfony 5 with composer?

You can try :
composer require sonata-project/user-bundle --no-update
composer require sonata-project/doctrine-orm-admin-bundle --no-update # optional
composer require friendsofsymfony/rest-bundle --no-update # optional when using api
composer require nelmio/api-doc-bundle --no-update # optional when using api
composer require sonata-project/google-authenticator --no-update # optional
composer update
Check this links
https://symfony.com/doc/master/bundles/SonataAdminBundle/index.html
https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/security.html
https://sonata-project.org/bundles/user/4-x/doc/reference/installation.html

Related

Unable to choose CakePHP in Laragon quick app

I have installed PHP, but the turtorial I was following was able to choose Cakephp in quickapp after installing php. But I don't have the choice. Is there something I need to install? Won't Laragon be able to recognise Cakephp and install upon selection.
Quick app > Configuration
remove hashes at beginning of CakePHP create project code:
Old:
### CakePHP=composer create-project --prefer-dist cakephp/app %s
New:
CakePHP=composer create-project --prefer-dist cakephp/app %s
When you go back to Quick app you will see CakePHP above Symfony

Adding ext-stackdriver_debugger to composer to enable StackDriver debugging in Google App Engine

I'm following the steps on this page: https://cloud.google.com/debugger/docs/setup/php
I want to set up the debugging for App Engine flexible environment (PHP 7.2).
Step 3 says to add the Add the Stackdriver Debugger PHP extension via your composer.json file: with the following command:
composer require ext-stackdriver_debugger:*
However, when I run that, the package cannot be found:
[InvalidArgumentException]
Could not find a matching version of package ext-stackdriver_debugger. Check the
package spelling, your version constraint and that the package is available in a
stability which matches your minimum-stability (stable).
How can I complete Step 3 successfully?
Such error usually means that extension/module is not enabled in PHP version used by composer command. Make sure that you've enabled module in php.ini used by PHP CLI. Alternatively you may explicitly use specific PHP version to run composer command:
/usr/bin/php7.2 composer require ext-stackdriver_debugger:*
In worst case you may try to add extension manually to composer.json:
"require": {
"ext-stackdriver_debugger": "*",
...
},
and use --ignore-platform-reqs switch on composer update and composer install. Or just ignore this step - requiring PHP extension does not give you any real benefits except preventing installing package on server without this extension. You don't need to add PHP extension to composer.json to use it.

How to rollback cakePHP 3.2 to 3.0

I did my project in cakePHP 3.0. By updating the composer my project converted into cakePHP 3.2. I want to rollback from 3.2 to 3.0. I tried rollback options too,that is also not working. How to rollback 3.2 to 3.0 ?
The rollback command supporty by composer is for the composer itself, ie it rolls back your composer installation to an earlier version, not anything that might have been installed via composer.
To change the version of the cakephp/cakephp dependency, simply require the new version with a version constraint that doesn't match 3.1 and above, so in your case, if you want to switch back to the 3.0.x branch, you could just run
$ composer require cakephp/cakephp:"~3.0.0"
The ~3.0.0 constraint will match >= 3.0.0 && < 3.1.0. See Composer Docs > Versions for more information on version constraints supported by composer.
However, You may encounter conflicts with other dependencies like cakephp/debug_kit or cakephp/bake, which need to be solved manually, for example by downgrading or even temporarily removing them, as they may have been upgraded too and require a newer cakephp/cakephp version themselves!

Building ionic app with cordova cli

I've just started to use the v1.0.1 of the ionic framework (by manually including the ionic css and js files and changing my directives to ionic directives) with a existing Cordova/Angular app for iOS/Android. My build infrastructure is currently setup to use the Cordova cli tools (v5.0) and I'd prefer to not change it if possible.
Is there any reason I shouldn't continue building my app using the Cordova cli rather than swapping to the ionic cli? Are there any potential compatibility issues? I understand that ionic is just a layer on top of Angular so it shouldn't have any effect on the app build process so building with Cordova should be ok?
Yes, building with Cordova CLI will be perfectly fine - Ionic actually uses Cordova in the backend.
So, for example ionic plugin add http://github.com/somePlugin does basically the same thing as cordova plugin add http://github.com/somePlugin.
Below you can see my terminal output, to affirm what I said above:
C:\Users\Nikola\Desktop\test\plugintest>cordova plugin add cordova-plugin-camera
Fetching plugin "cordova-plugin-camera" via npm
npm http GET https://registry.npmjs.org/cordova-plugin-camera
npm http 200 https://registry.npmjs.org/cordova-plugin-camera
npm http GET https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-1.2.0.tgz
npm http 200 https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-1.2.0.tgz
C:\Users\Nikola\Desktop\test\plugintest>cordova plugin list
com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-camera 1.2.0 "Camera"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-whitelist 1.0.0 "Whitelist"
C:\Users\Nikola\Desktop\test\plugintest>ionic plugin list
com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-camera 1.2.0 "Camera"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-whitelist 1.0.0 "Whitelist"
C:\Users\Nikola\Desktop\test\plugintest>cordova plugin remove cordova-plugin-camera
Removing "cordova-plugin-camera"
C:\Users\Nikola\Desktop\test\plugintest>ionic plugin add cordova-plugin-camera
Updated the hooks directory to have execute permissions
Fetching plugin "cordova-plugin-camera" via npm
npm http GET https://registry.npmjs.org/cordova-plugin-camera
npm http 304 https://registry.npmjs.org/cordova-plugin-camera
Saving plugin to package.json file
However, ionic cli has some additional features (like for example ionic resources to name at least one) which you may want to use to generate splash screen and icons.
Found this on the ionic-cli github page:
Ionic uses Cordova underneath, so you can also substitute Cordova commands to prepare/build/emulate/run, or to add additional plugins.
So it's fine to use Cordova to build it.

Generate uml class diagram from existing angularjs code

I am looking for a tool like Angularjs explorer viewer that can generate mvc diagram including all the controller/services and the dependencies between them from existing angularjs code. This one is a plugin in eclipse. And I failed to installed it when I tried to followed the instruction Getting started.
the error said :
Cannot complete the install because one or more required items could
not be found. Software being installed: tern feature
0.3.0.201406242125 (tern-feature.feature.group 0.3.0.201406242125) Missing requirement: Tern - Server - Nodejs 0.3.0.201406242125
(tern.server.nodejs 0.3.0.201406242125) requires 'package
org.apache.http 0.0.0' but it could not be found Missing
requirement: Tern - Server - Nodejs 0.4.0.201407211814
(tern.server.nodejs 0.4.0.201407211814) requires 'package
org.apache.http 0.0.0' but it could not be found Cannot satisfy
dependency:
From: tern feature 0.3.0.201406242125 (tern-feature.feature.group 0.3.0.201406242125)
To: tern.eclipse.ide.core [0.3.0.201406242125] Cannot satisfy dependency:
From: Tern - Eclipse - Core IDE 0.3.0.201406242125 (tern.eclipse.ide.core 0.3.0.201406242125)
To: bundle tern.server.nodejs 0.2.0
Is there any?
Thanks
This question is about installation of AngularJS Eclipse. It seems that your Eclipse has not the plugin org.apache.http.
I suggest you to use Eclipse Luna (4.4) and the distribution Eclipse IDE for Java EE Developers.
AngularJS Eclipse is based on tern.java which is based on tern.js a JS inference engine. So you could use just tern.js with Grunt task for instance to call angular tern plugin which will parse your JS files and returns a JSON with Module, Contrroller, etc. Never done that but I think it's possible.

Resources