Skip to content

Commit

Permalink
added upgrade notes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Nov 15, 2023
1 parent aae092b commit 7841df4
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions UPGRADE-14.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,55 @@ Follow the instructions in relevant sections, e.g. `shopsys/coding-standards` or
- see #project-base-diff to update your project
- replace custom application bootstrapping with symfony/runtime ([#2914](https://github.com/shopsys/shopsys/pull/2914))
- see #project-base-diff to update your project
- enable crons to be run at specified times the same as crons ()
- replace `HourlyFeedCronModule` and `DailyFeedCronModule` with `FeedCronModule` in `config/services/cron.yaml` and set it to be run every time crons are run to ensure that all feeds are generated
- `FeedExportCreationDataQueue` has changed, first parameter is now an array of `Shopsys\FrameworkBundle\Model\Feed\FeedModule` instances instead of module names
- method `Shopsys\FrameworkBundle\Model\Feed\FeedFacade::__construct()` changed its interface:
```diff
public function __construct(
protected readonly FeedRegistry $feedRegistry,
protected readonly ProductVisibilityFacade $productVisibilityFacade,
protected readonly FeedExportFactory $feedExportFactory,
protected readonly FeedPathProvider $feedPathProvider,
protected readonly FilesystemOperator $filesystem,
+ protected readonly FeedModuleRepository $feedModuleRepository,
+ protected readonly EntityManagerInterface $em,
)
```
- method `Shopsys\FrameworkBundle\Model\Feed\FeedFacade::getFeedsInfo()` changed its interface:
```diff
- public function getFeedsInfo(?string $feedType = null): array
+ public function getFeedsInfo(bool $onlyForCurrentTime = false): array
```
- method `Shopsys\FrameworkBundle\Model\Feed\FeedFacade::getFeedsNames()` changed its interface:
```diff
- public function getFeedNames(?string $feedType = null): array
+ public function getFeedNames(bool $onlyForCurrentTime = false): array
```
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::__construct()` changed its interface:
```diff
public function __construct(
- protected readonly array $knownTypes,
- protected readonly string $defaultType,
+ protected readonly FeedRegistry $feedRegistry,
+ protected readonly ProductVisibilityFacade $productVisibilityFacade,
+ protected readonly FeedExportFactory $feedExportFactory,
+ protected readonly FeedPathProvider $feedPathProvider,
+ protected readonly FilesystemOperator $filesystem,
+ protected readonly FeedModuleRepository $feedModuleRepository,
+ protected readonly EntityManagerInterface $em,
)
```
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::registerFeed()` changed its interface:
```diff
- public function registerFeed(FeedInterface $feed, ?string $type = null): void
+ public function registerFeed(FeedInterface $feed, string $timeHours, string $timeMinutes, array $domainIds): void
```
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getFeeds()` has been replaced with method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getFeedsForCurrentTime()`
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getAllFeeds()` has been replaced with method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getAllFeedConfigs()`
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getFeedByName()` has been replaced with method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::getFeedConfigByName()`
- method `Shopsys\FrameworkBundle\Model\Feed\FeedRegistry::assertTypeIsKnown()` has been removed without replacement
- see #project-base-diff to update your project

### Storefront

Expand Down

0 comments on commit 7841df4

Please sign in to comment.