Skip to content

Commit

Permalink
SW-25707 - Remove deprecations for 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Sep 24, 2020
1 parent 14e2d28 commit b2709e5
Show file tree
Hide file tree
Showing 22 changed files with 113 additions and 847 deletions.
24 changes: 24 additions & 0 deletions UPGRADE-5.7.md
Expand Up @@ -80,6 +80,7 @@ This changelog references changes done in Shopware 5.7 patch versions.
* Changed `\Shopware\Bundle\ESIndexingBundle\Product\ProductProvider` to set `hasStock` based on instock like DBAL implementation
* Changed `\Shopware_Controllers_Backend_ProductStream::loadPreviewAction` to return formatted prices
* Changed `sw:plugin:activate` exit code from 1 to 0, when it's already installed.
* Changed `\Shopware\Bundle\StoreFrontBundle\Gateway\DBAL\CategoryGateway::get` it accepts now only integers as id

### Removals

Expand Down Expand Up @@ -109,6 +110,28 @@ This changelog references changes done in Shopware 5.7 patch versions.
* `\Shopware\Plugin\Debug\Components\TemplateCollector`
* `\Shopware\Plugin\Debug\Components\TemplateVarCollector`
* `\Shopware\Plugin\Debug\Components\Utils`
* `\Shopware\Components\Api\Resource\ApiProgressHelper`
* `\Shopware\Bundle\StoreFrontBundle\Struct\LocationContext`
* `\Shopware\Components\OpenSSLEncryption`
* `\Shopware\Bundle\SearchBundleES\DependencyInjection\Factory\ProductNumberSearchFactory`
* Removed method `\Shopware\Bundle\EsBackendBundle\EsBackendIndexer::buildAlias` use `\Shopware\Bundle\EsBackendBundle\IndexFactoryInterface::createIndexConfiguration` instead
* Removed method `\Shopware\Bundle\SearchBundleES\DependencyInjection\Factory\ProductNumberSearchFactory::registerHandlerCollection`, use DI Tag `shopware_search_es.search_handler` instead
* Removed method `\Shopware\Components\Model\ModelRepository::queryAll`, use `\Shopware\Components\Model\ModelRepository::findAll` instead
* Removed method `\Shopware\Components\Model\ModelRepository::queryAll`, use `\Shopware\Components\Model\ModelRepository::findAll` instead
* Removed method `\Shopware\Components\Model\ModelRepository::queryBy`, use `\Shopware\Components\Model\ModelRepository::findBy` instead
* Removed following interfaces:
* `\Shopware\Bundle\ESIndexingBundle\Product\ProductProviderInterface`
* `\Shopware\Bundle\ESIndexingBundle\Property\PropertyProviderInterface`
* `\Shopware\Bundle\ESIndexingBundle\EsSearchInterface`
* `\Shopware\Bundle\StoreFrontBundle\Struct\LocationContextInterface`
* Removed from class `\Shopware\Components\HttpCache\CacheWarmer` following methods:
* `callUrls`
* `getSEOURLByViewPortCount`
* `getAllSEOUrlCount`
* `getAllSEOUrls`
* `getSEOUrlByViewPort`
* `prepareUrl`
* `getShopDataById`
* Removed referenced value from magic getter in session
* Removed the assignment of all request parameters to the view in `Shopware_Controllers_Widgets_Listing::productsAction`
* Removed duplicate ExtJs classes and added alias to new class:
Expand Down Expand Up @@ -138,6 +161,7 @@ This changelog references changes done in Shopware 5.7 patch versions.
* `symfony/polyfill-php70`
* `symfony/polyfill-php71`
* `symfony/polyfill-php72`
* Removed field `size` from `Shopware\Models\Article\Download`. Use media_service to get the correct file size
* Removed plugin `Debug`

### Deprecations
Expand Down
2 changes: 1 addition & 1 deletion engine/Shopware/Bundle/ESIndexingBundle/EsSearch.php
Expand Up @@ -29,7 +29,7 @@
use ONGR\ElasticsearchDSL\Search;
use ONGR\ElasticsearchDSL\Serializer\OrderedSerializer;

class EsSearch extends Search implements EsSearchInterface
class EsSearch extends Search
{
/**
* @var OrderedSerializer
Expand Down
40 changes: 0 additions & 40 deletions engine/Shopware/Bundle/ESIndexingBundle/EsSearchInterface.php

This file was deleted.

Expand Up @@ -46,7 +46,7 @@
use Shopware\Bundle\StoreFrontBundle\Struct\Shop;
use Shopware\Bundle\StoreFrontBundle\Struct\ShopContextInterface;

class ProductProvider implements ProviderInterface, ProductProviderInterface
class ProductProvider implements ProviderInterface
{
/**
* @var ContextServiceInterface
Expand Down

This file was deleted.

Expand Up @@ -25,6 +25,7 @@
namespace Shopware\Bundle\ESIndexingBundle\Property;

use Doctrine\DBAL\Connection;
use Shopware\Bundle\ESIndexingBundle\ProviderInterface;
use Shopware\Bundle\StoreFrontBundle\Gateway\DBAL\FieldHelper;
use Shopware\Bundle\StoreFrontBundle\Gateway\DBAL\Hydrator\PropertyHydrator;
use Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface;
Expand All @@ -33,7 +34,7 @@
use Shopware\Bundle\StoreFrontBundle\Struct\Shop;
use Shopware\Bundle\StoreFrontBundle\Struct\ShopContextInterface;

class PropertyProvider implements PropertyProviderInterface
class PropertyProvider implements ProviderInterface
{
/**
* @var Connection
Expand Down

This file was deleted.

14 changes: 0 additions & 14 deletions engine/Shopware/Bundle/EsBackendBundle/EsBackendIndexer.php
Expand Up @@ -80,20 +80,6 @@ public function index(ProgressHelperInterface $helper)
}
}

/**
* @deprecated since 5.6, will be removed with 5.7. Use IndexFactory service instead
*
* @param string $domainName
*
* @return string
*/
public static function buildAlias($domainName)
{
trigger_error(sprintf('%s:%s is deprecated since 5.6 and will be removed with 5.7, use IndexNameBuilderInterface instead', __CLASS__, __FUNCTION__), E_USER_DEPRECATED);

return Shopware()->Container()->get(IndexFactoryInterface::class)->createIndexConfiguration($domainName)->getAlias();
}

/**
* @param string $index
*/
Expand Down

This file was deleted.

Expand Up @@ -7,21 +7,17 @@
<services>
<defaults public="true" />

<service id="shopware_search_es.handler_collection" class="Doctrine\Common\Collections\ArrayCollection">
<factory service="shopware_search_es.product_number_search_factory" method="registerHandlerCollection" />
<argument type="service" id="service_container" />
</service>

<service id="shopware_search_es.struct_hydrator" class="Shopware\Bundle\SearchBundleES\StructHydrator" />

<service id="shopware_search_es.product_number_search_factory" class="Shopware\Bundle\SearchBundleES\DependencyInjection\Factory\ProductNumberSearchFactory">
<service id="Shopware\Bundle\SearchBundleES\HandlerRegistry">
<argument type="tagged" tag="shopware_search_es.search_handler" />
<argument type="service" id="events"/>
</service>

<service id="shopware_search_es.product_number_search" class="Shopware\Bundle\SearchBundleES\ProductNumberSearch">
<factory service="shopware_search_es.product_number_search_factory" method="factory" />
<argument type="service" id="service_container" />
<argument type="service" id="service_container" />
<argument type="service" id="shopware_elastic_search.client"/>
<argument type="service" id="shopware_elastic_search.index_factory"/>
<argument type="service" id="Shopware\Bundle\SearchBundleES\HandlerRegistry"/>
</service>

<service id="shopware_search_es.search_term_query_builder" class="Shopware\Bundle\SearchBundleES\SearchTermQueryBuilder">
Expand Down

0 comments on commit b2709e5

Please sign in to comment.