Skip to content
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

[BUG] Time publish events have been removed #5721

Closed
pbnPierre opened this issue Aug 31, 2016 · 2 comments
Closed

[BUG] Time publish events have been removed #5721

pbnPierre opened this issue Aug 31, 2016 · 2 comments

Comments

@pbnPierre
Copy link

I am working on bolt upgrade from 2,2 to 3,1 and i have this fatal error
Undefined class constant 'TIMED_PUBLISH'
Theses storage events have been removed ( probably in #2664 )

Details

  • Relevant Bolt Version: 3.1
  • Install type: Composer install
  • PHP version: 5.6
  • Used web server: Apache
@pbnPierre
Copy link
Author

pbnPierre commented Aug 31, 2016

They are still sended by timedHandleRecords function
foreach ($recordIds as $recordId) { $content = $this->getContent($contenttypeSlug . '/' . $recordId['id'], ['hydrate' => false, 'returnsingle' => true]); $event = new StorageEvent($content, ['contenttype' => $contenttypeSlug, 'create' => false]); $this->app['dispatcher']->dispatch("timed.$type", $event); }

As a hotfix I will not use class constant

@SvanteRichter
Copy link
Contributor

Closing since this seems to have been a 2.2 way of doing things erroring on 3.X, which is to be expected. If that is not the case please reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants