Skip to content

Event documentation lists wrong event names. #133

Open
ignace opened this Issue Sep 8, 2012 · 0 comments

1 participant

@ignace
ignace commented Sep 8, 2012

http://proemframework.org/docs/dev/bootstrap.html

pre.in.response
post.in.response
pre.in.request
post.in.request
pre.in.router
post.in.router
pre.in.dispatch
post.in.dispatch
pre.out.dispatch
post.out.dispatch
pre.out.route
post.out.route
pre.out.request
post.out.request
pre.out.response
post.out.response
  1. These should all start with proem.
  2. The below event names are missing an r at the end to work
pre.out.route
post.out.route

The code example below that

    (new \Proem\Proem)->attachEventListener('proem.post.in.route', function($event) {
        $event->getServiceManager()->get('router')->attach(
            'logout', new \Proem\Routing\Route\Standard([
                'rule'      => '/logout',
                'targets'   => ['controller' => 'auth', 'action' => 'logout']
            ])
        );
    })->init();

Does not work due to this typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.