-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.2] Convert joomla action log plugin to services #37788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
roland-d
merged 27 commits into
joomla:4.2-dev
from
Digital-Peak:j4/plugins/actionlog/joomla
May 30, 2022
Merged
Changes from 14 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8ec1661
Merge action log DB changes
laoneo 02b0b6e
Convert joomla action log plugin to services
laoneo 3b1b366
import
laoneo a4aee09
cs
laoneo 24753a2
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo 8c6937a
doc
laoneo bc8beb2
Merge branch 'j4/plugins/actionlog/joomla' of github.com:Digital-Peak…
laoneo f74f563
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo 35acc88
cs
laoneo 4f54dcc
Move to root
laoneo b987c1a
Update plugins/actionlog/joomla/services/provider.php
laoneo 495be7e
doc
laoneo f74643c
Merge branch 'j4/plugins/actionlog/joomla' of github.com:Digital-Peak…
laoneo 96dead5
more doc
laoneo f36344c
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo 2c1a2d3
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo c49d860
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo 1f03ed3
Update plugins/actionlog/joomla/services/provider.php
laoneo afaca09
Update plugins/actionlog/joomla/services/provider.php
laoneo 713a149
moved to extension
laoneo fb8f8bf
Merge remote-tracking branch 'upstream/4.2-dev' into j4/plugins/actio…
laoneo 12dce3a
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
laoneo a97b0f9
cs
laoneo a4aae75
Update plugins/actionlog/joomla/services/provider.php
laoneo 051abe3
lower case
laoneo a878b87
Merge branch 'j4/plugins/actionlog/joomla' of github.com:Digital-Peak…
laoneo 7010457
Merge branch '4.2-dev' into j4/plugins/actionlog/joomla
roland-d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| <?php | ||
| /** | ||
| * @package Joomla.Plugin | ||
| * @subpackage Actionlog.joomla | ||
| * | ||
| * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| defined('_JEXEC') or die; | ||
|
|
||
| use Joomla\CMS\Extension\PluginInterface; | ||
| use Joomla\CMS\Plugin\PluginHelper; | ||
| use Joomla\Database\DatabaseInterface; | ||
| use Joomla\DI\Container; | ||
| use Joomla\DI\ServiceProviderInterface; | ||
| use Joomla\Event\DispatcherInterface; | ||
| use Joomla\Plugin\Actionlog\Joomla\Joomla; | ||
|
|
||
| return new class implements ServiceProviderInterface { | ||
| /** | ||
laoneo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * Registers the service provider with a DI container. | ||
| * | ||
| * @param Container $container The DI container. | ||
| * | ||
| * @return void | ||
laoneo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * | ||
| * @since __DEPLOY_VERSION__ | ||
| */ | ||
| public function register(Container $container) | ||
| { | ||
| $container->set( | ||
| PluginInterface::class, | ||
| function (Container $container) | ||
| { | ||
| $plugin = new Joomla( | ||
| $container->get(DispatcherInterface::class), | ||
| (array) PluginHelper::getPlugin('system', 'cache') | ||
laoneo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ); | ||
| $plugin->setDatabase($container->get(DatabaseInterface::class)); | ||
|
|
||
| return $plugin; | ||
| } | ||
| ); | ||
| } | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.