Get the list of installed extensions for Pimcore v5 in PHP - pimcore

I have to write an extension (plugin/bundle) which has to check if 3 other extensions are installed and enabled. I searched for a way to ask Pimcore v5 about all installed extensions and their status. Is there is anyone who can point to some information in Pimcore docs or who knows how this can by done?

Various Methods like
isInstalled
isEnabled
canBeInstalled
etc to check the states of the bundles are available in PimcoreBundleManager .
For more info: Take a look at the implementation of these methods in EnableCommand

Related

Frontend users with Bolt 4

I moved to Bolt 4 (from Bolt 3.7) and would like to implement front-end user to give them access to private contents of the website. Previously, I used the extension BoltAuth/Auth, which worked like a charm.
Now in Bolt 4, there is no easy way like in Bolt 3.x to install an extension from the back-end page. I found out I could use composer to do so, but I run in the following problem:
> composer require "boltauth/auth:3.0.1"
[InvalidArgumentException]
Could not find a matching version of package boltauth/auth. Check the package
spelling, your version constraint and that the package is available in a stability
which matches your minimum-stability (stable).
Either I do something wrong, or the extension is not compatible with Bolt 4.1.
Could someone tell me if there is a way to make this extension work? Or alternatives for front-end user management?
EDIT: I'm now using the bolt/users extension as it can be used to add a ROLE_MEMBERS and let users login for the frontend.
Yes, unfortunately the architecture for plugins (mainly driven by the move from Silex to Symfony) changed completely between 3.x and 4.x and it's not really feasible to release new 4.x compatible versions.
So for now there won't likely be updates to BoltAuth. It may be worth joining the Slack community and seeing if any other developers are working on 4.x compatible solutions to the client login scenarios.

Having source code for third party javascript libraries available whilst debugging

I would like to know whether it is possible to have third-party javascript libraries' source code available whilst debugging.
FYI, I use npm/nodejs and the angular CLI (which itself relies on Webpack).
Example libraries (together with their source languages) that I would like to have available during debugging are:
Angular 2 (typescript)
RxJS (typescript)
I guess what I want to achieve is related to configuring source maps.
Any comment or guidance welcome.
edit: Can someone please advise how to configure the angular CLI in order to have angular and RxJS typescript sources available whilst debugging?
Yes, to be able to set breakpoints in source files while debugging, you need sourcemaps. But this is not the thing that can be configured in the IDE, you need to set up your build tools accordingly. The only thing that should be configured on the IDE end is the run configuration - you might need to specify Remote URL mappings for your project directories
To complement lena's answer and as of #angular/cli version's 6.1 is it now possible to output source maps for vendor libraries using the following syntax:
ng serve --source-map --vendor-source-map
It also works for the ng build command.
See also: https://blog.ninja-squad.com/2018/07/27/angular-cli-6.1/
It is then possible to debug third-party libraries using an IDE or the browser.

How do I configure Nwazet Commerce with Orchard 1.7.2?

I'm trying to install Nwazet Commerce with Orchard 1.7.2.
Suddenly, nothing happens. No new menus, no errors, nothing in the logs, nothing. It is just as if I hadn't installed it.
Before you ask... yes I've enabled the modules.
I can't find even a single scrap of documentation. What is supposed to happen? I would expect to see some extra menus or something on my dashboard or perhaps some extra content types, but there's nothing.
Help please :-|
You can't. The current version in the source repository is only compatible with the 1.x branch. See https://bitbucket.org/bleroy/nwazet.commerce/issue/20/update-to-17
I have a version for 1.7.2 unfortunately I don't know what fork it was from so I don't know what bugs or issues were included.
I found it in my saved orchard files and tested quickly you will get the admin options.
Download available here

how to work with google license verification library in apportable

I am converting my iOS app to android using apportable, I need help implementing google play licensing into my code, I am confused about how to include google play license verification library (LVL)into my code. I know how to call java code using Bridgekit but how will I include LVL, because when we work in eclipse we need to download and install Google Market Licensing package from sdk manager.
what steps do i have to take to include LVL into my project and start coding
The Apportable platform already includes the required LVL libraries, since they are required for the Google Expansion Files feature.
You should be able to follow all the other steps in the docs: http://developer.android.com/google/play/licensing/index.html
For more info on how to add the check_license permission, see the android manifest documentation: http://docs.apportable.com/config.html#manifest-options
For adding the Google "public key string" (via the SIGNING_PUBKEY environment variable) see the expansion files documentation: http://docs.apportable.com/publishing.html#large-installers
The rest should be possible via BridgeKit and maybe also by adding a small java shim.

Orchard ImageGallery Module: Missing Orchard.Media

I have installed Orchard 1.7 via the Web Platform Installer. When I add the ImageGallery module or the PrettyGallery modules they install but the features do not enable. If I locate the entries in the Features list both of them report 'Missing: Orchard.Media'. Orchard.Media.dll is present in:
\Modules\Orchard.Fields\bin
\App_Data\Dependencies
Has anybody else had this issue with these modules?
Many Thanks
It's because Orchard.Media is not the default Media module anymore. It's one of the deprecated modules now, download the source code and see the references there.

Resources