Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/6.9'
Browse files Browse the repository at this point in the history
# Conflicts:
#	bundles/EcommerceFrameworkBundle/Resources/config/tracking_manager.yml
  • Loading branch information
dvesh3 committed Feb 18, 2021
2 parents bcd2f88 + fa24453 commit 1924e32
Show file tree
Hide file tree
Showing 31 changed files with 95 additions and 4 deletions.
1 change: 1 addition & 0 deletions bundles/AdminBundle/Controller/Reports/PiwikController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated
* @Route("/piwik")
*/
class PiwikController extends ReportsControllerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @license http://www.pimcore.org/license GPLv3 and PEL
*/

/**
* @deprecated
*/
pimcore.registerNS("pimcore.analytics.piwik.WidgetStoreProvider");

(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @license http://www.pimcore.org/license GPLv3 and PEL
*/

/**
* @deprecated
*/
pimcore.registerNS("pimcore.layout.portlets.piwik");
pimcore.layout.portlets.piwik = Class.create(pimcore.layout.portlets.abstract, {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @license http://www.pimcore.org/license GPLv3 and PEL
*/

/**
* @deprecated
*/
pimcore.registerNS("pimcore.report.piwik.dashboard_iframe");
pimcore.report.piwik.dashboard_iframe = Class.create(pimcore.report.abstract, {
matchType: function (type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @license http://www.pimcore.org/license GPLv3 and PEL
*/

/**
* @deprecated
*/
pimcore.registerNS("pimcore.report.piwik.settings");
pimcore.report.piwik.settings = Class.create({

Expand All @@ -24,10 +27,14 @@ pimcore.report.piwik.settings = Class.create({

getLayout: function () {
this.panel = new Ext.FormPanel({
title: "Matomo/Piwik",
title: "Matomo/Piwik (Deprecated)",
bodyStyle: "padding: 10px;",
autoScroll: true,
items: [
{
xtype: 'container',
html: "<b>DEPRECATED! Will be removed in Pimcore 10</b><br />"
},
{
xtype: "displayfield",
width: 670,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ pimcore.settings.targeting.conditions = (function () {
name: "type",
value: "visitedpagebefore"
},
{
xtype: "displayfield",
hideLabel: true,
value: warningIconHtml + ' DEPRECATED! Will be removed in Pimcore 10',
cls: "pimcore_extra_label"
},
{
xtype: "displayfield",
hideLabel: true,
Expand Down
3 changes: 2 additions & 1 deletion bundles/CoreBundle/Resources/config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ services:
Pimcore\Analytics\Piwik\ReportBroker: ~
Pimcore\Analytics\Piwik\WidgetBroker: ~

Pimcore\Analytics\Piwik\Tracker: ~
Pimcore\Analytics\Piwik\Tracker:
deprecated: ~

Pimcore\Analytics\Piwik\EventListener\CacheListener: ~
Pimcore\Analytics\Piwik\EventListener\IndexSettingsListener: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
arguments:
- '@Pimcore\Analytics\Piwik\Tracker'
- '@Pimcore\Bundle\EcommerceFrameworkBundle\Tracking\TrackingItemBuilder'

deprecated: 'The "%service_id%" service is deprecated.'


#
Expand Down
3 changes: 3 additions & 0 deletions bundles/EcommerceFrameworkBundle/Tracking/Tracker/Piwik.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
use Symfony\Component\OptionsResolver\OptionsResolver;
use Twig\Environment;

/**
* @deprecated
*/
class Piwik extends Tracker implements
ProductViewInterface,
CategoryPageViewInterface,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Matomo (formerly known as Piwik)
# [Deprecated] Matomo (formerly known as Piwik)

Similar to Google Analytics, a Matomo tracking code can be automatically injected into each response. For a basic tracking
integration you need to know the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
`CartInterface::COUNT_MAIN_ITEMS_ONLY`, `CartInterface::COUNT_MAIN_AND_SUB_ITEMS`, `CartInterface::COUNT_MAIN_OR_SUB_ITEMS`
instead.

- [Analytics] Matomo(Piwik) integration has been deprecated in Core and Ecommerce bundle, and will be removed in Pimcore 10.
- [Targeting and Personalization] VisitedPageBefore condition has been deprecated, as it is based on deprecated Piwik integration and will be removed in Pimcore 10.

#### Migrating legacy module/controller/action configurations to new controller references
You can use `./bin/console migration:controller-reference` to migrate your existing Documents,
Staticroutes and Document Types to the new controller references in the format: `AppBundle\Controller\FooController::barAction`.
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Api/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
use Symfony\Component\Serializer\Encoder\DecoderInterface;
use Symfony\Component\Serializer\SerializerInterface;

/**
* @deprecated
*/
class ApiClient
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Api/Exception/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

use Throwable;

/**
* @deprecated
*/
class ApiException extends \RuntimeException
{
/**
Expand Down
2 changes: 2 additions & 0 deletions lib/Analytics/Piwik/Api/SitesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated
*
* Exposes parts of the Piwik SitesManager API
*/
class SitesManager
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Api/VisitorClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

use Pimcore\Analytics\Piwik\Config\Config;

/**
* @deprecated
*/
class VisitorClient
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

use Pimcore\Config\Config as ConfigObject;

/**
* @deprecated
*/
class Config
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Config/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

use Pimcore\Config\Config as ConfigObject;

/**
* @deprecated
*/
class ConfigProvider
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Dto/ReportConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

namespace Pimcore\Analytics\Piwik\Dto;

/**
* @deprecated
*/
final class ReportConfig
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Dto/WidgetConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

namespace Pimcore\Analytics\Piwik\Dto;

/**
* @deprecated
*/
final class WidgetConfig
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Dto/WidgetReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

namespace Pimcore\Analytics\Piwik\Dto;

/**
* @deprecated
*/
final class WidgetReference
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Event/ReportConfigEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use Pimcore\Analytics\Piwik\Dto\ReportConfig;
use Symfony\Contracts\EventDispatcher\Event;

/**
* @deprecated
*/
class ReportConfigEvent extends Event
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/Event/TrackingDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Pimcore\Analytics\SiteId\SiteId;
use Symfony\Contracts\EventDispatcher\Event;

/**
* @deprecated
*/
class TrackingDataEvent extends Event
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/EventListener/CacheListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Pimcore\Event\Admin\ReportEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* @deprecated
*/
class CacheListener implements EventSubscriberInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/EventListener/IndexSettingsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
use Pimcore\Event\AdminEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* @deprecated
*/
class IndexSettingsListener implements EventSubscriberInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Analytics/Piwik/EventListener/TrackingCodeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;

/**
* @deprecated
*/
class TrackingCodeListener implements EventSubscriberInterface
{
use ResponseInjectionTrait;
Expand Down
2 changes: 2 additions & 0 deletions lib/Analytics/Piwik/ReportBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @deprecated
*
* Builds a list of all available Piwik reports which should be shown in reports panel. A ReportConfig references an
* iframe URL with a title. Additional reports can be added by adding them in the GENERATE_REPORTS event.
*/
Expand Down
7 changes: 7 additions & 0 deletions lib/Analytics/Piwik/Tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Twig\Environment;

/**
* @deprecated
*/
class Tracker extends AbstractTracker
{
const BLOCK_BEFORE_SCRIPT_TAG = 'beforeScriptTag';
Expand Down Expand Up @@ -78,6 +81,10 @@ public function __construct(
EventDispatcherInterface $eventDispatcher,
Environment $twig
) {
@trigger_error(
'Piwik\Tracker has been deprecated and will be removed in Pimcore 10.',
E_USER_DEPRECATED
);
parent::__construct($siteIdProvider);

$this->configProvider = $configProvider;
Expand Down
2 changes: 2 additions & 0 deletions lib/Analytics/Piwik/WidgetBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @deprecated
*
* Fetches and caches available widget data (stored by site ID and language) from the
* Piwik API. This is used to show a list of widgets inside the Pimcore admin and to
* generate iframe URLs to single widgets.
Expand Down
3 changes: 3 additions & 0 deletions lib/Event/Analytics/PiwikEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

namespace Pimcore\Event\Analytics;

/**
* @deprecated
*/
final class PiwikEvents
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Targeting/Condition/Piwik/VisitedPageBefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Pimcore\Targeting\DataProviderDependentInterface;
use Pimcore\Targeting\Model\VisitorInfo;

/**
* @deprecated
*/
class VisitedPageBefore implements ConditionInterface, DataProviderDependentInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions lib/Targeting/EventListener/PiwikVisitorIdListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use Pimcore\Event\Analytics\PiwikEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
* @deprecated
*/
class PiwikVisitorIdListener implements EventSubscriberInterface
{
/**
Expand Down

0 comments on commit 1924e32

Please sign in to comment.