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

[WIP] Observation #241

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Open

[WIP] Observation #241

wants to merge 2 commits into from

Conversation

dantleech
Copy link
Contributor

I started working on Observation this morning. Basically the goal of this PR is to support non-journaling event observation.

I guess this can all be done at the jackalope level?

@@ -127,10 +127,12 @@ public function __construct(FactoryInterface $factory, Repository $repository, $
{
$this->factory = $factory;
$this->repository = $repository;
$this->objectManager = $this->factory->get('ObjectManager', array($transport, $this));
$observationManager = $this->factory->get('Observation\ObservationManager', array($factory, $this, $transport));
$this->objectManager = $this->factory->get('ObjectManager', array($transport, $this, $observationManager));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observation manager is always created when the session is intantiated.

@dbu
Copy link
Member

dbu commented Aug 25, 2014

what do you mean by non-journaling? that we only see the events of the current session?

i agree it should go into jackalope/jackalope. just make sure its done in a way that jackalope-jackrabbit can do everything differently.

@dantleech
Copy link
Contributor Author

yeah. so repositories can support "non journaling", journaling or both. Non-journaling would be the equivalent of the SF event system I think.

http://www.day.com/specs/jcr/2.0/12_Observation.html#12.1%20Event%20Model

Repository.OPTION_OBSERVATION_SUPPORTED or
Repository.OPTION_JOURNALED_OBSERVATION_SUPPORTED.

@dbu
Copy link
Member

dbu commented Aug 25, 2014

can we reuse the symfony event component for this?

@dantleech
Copy link
Contributor Author

We could wrap it I guess.

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

Successfully merging this pull request may close these issues.

None yet

3 participants