-
Notifications
You must be signed in to change notification settings - Fork 81
[Misc] Various small fixes #2809
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
|
|
||
| namespace App\EventSubscriber; | ||
|
|
||
| use Ibexa\Contracts\Core\Repository\Events\Content\CopyContentEvent; | ||
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
|
|
||
| class MyEventSubscriber implements EventSubscriberInterface | ||
| { | ||
| public static function getSubscribedEvents() | ||
| { | ||
| return [ | ||
| CopyContentEvent::class => ['onCopyContent', 0], | ||
| ]; | ||
| } | ||
|
|
||
| public function onCopyContent(CopyContentEvent $event): void | ||
| { | ||
| // your implementation | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,13 +136,6 @@ To identify as a different user, you need to use the `UserService` together with | |
|
|
||
| This isn't required in template functions or controller code, as the HTTP layer takes care of identifying the user, and automatically sets it in the repository. | ||
|
|
||
| If you want to identify a user with their credentials instead, provide them in the following way: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This API has been removed in 3.3 |
||
|
|
||
| ``` php | ||
| $user = $userService->loadUserByCredentials($username, $password); | ||
| $permissionResolver->setCurrentUserReference($user); | ||
| ``` | ||
|
|
||
| ## Exception handling | ||
|
|
||
| PHP API uses [Exceptions](https://www.php.net/exceptions) to handle errors. | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could it be 4.6.21? (You can event edit the code w/ browser console if you don't want to update your current install :p) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've decided to cheat a bit more: 3b795c8 I see no value in having the exact version there, as long it says 4.6 (and it means less maintanence for us) |
Uh oh!
There was an error while loading. Please reload this page.