Get list of all Phalcon events


May '15

May '15

2

1531

1

edited Dec '15
May '15
$ pwd
/home/klay/projects/c/cphalcon

$ git branch
  2.0.0
* 2.0.x
  master

$ php --ri phalcon | grep 'Version =>'
Version => 2.0.10

$ egrep -ir 'fire\("([a-z]+:[a-z]+)",\S?.+\)' \
    phalcon | sed -e 's/ //g' | awk '{print $2, $1}' | \
    sed -e "s/:$//g" | awk -F"->fire" '{print $2}' | \
    sed -e 's/("//g' | sed -e 's/".\+\();\|{\)//g' | \
    sort

acl:afterCheckAccess phalcon/acl/adapter/memory.zep
acl:beforeCheckAccess phalcon/acl/adapter/memory.zep
application:afterHandleRequest phalcon/mvc/application.zep
application:afterStartModule phalcon/mvc/application.zep
application:beforeHandleRequest phalcon/mvc/application.zep
application:beforeSendResponse phalcon/mvc/application.zep
application:beforeStartModule phalcon/mvc/application.zep
application:boot phalcon/mvc/application.zep
application:viewRender phalcon/mvc/application.zep
collectionManager:afterInitialize phalcon/mvc/collection/manager.zep
console:afterHandleTask phalcon/cli/console.zep
console:afterStartModule phalcon/cli/console.zep
console:beforeHandleTask phalcon/cli/console.zep
console:beforeStartModule phalcon/cli/console.zep
console:boot phalcon/cli/console.zep
db:afterQuery phalcon/db/adapter/pdo.zep
db:afterQuery phalcon/db/adapter/pdo.zep
db:beforeQuery phalcon/db/adapter/pdo.zep
db:beforeQuery phalcon/db/adapter/pdo.zep
db:beginTransaction phalcon/db/adapter/pdo.zep
db:commitTransaction phalcon/db/adapter/pdo.zep
db:createSavepoint phalcon/db/adapter/pdo.zep
db:releaseSavepoint phalcon/db/adapter/pdo.zep
db:rollbackSavepoint phalcon/db/adapter/pdo.zep
db:rollbackTransaction phalcon/db/adapter/pdo.zep
di:beforeServiceResolve phalcon/di.zep
dispatch:afterDispatchLoop phalcon/dispatcher.zep
dispatch:afterDispatch phalcon/dispatcher.zep
dispatch:afterExecuteRoute phalcon/dispatcher.zep
dispatch:afterInitialize phalcon/dispatcher.zep
dispatch:beforeDispatchLoop phalcon/dispatcher.zep
dispatch:beforeDispatch phalcon/dispatcher.zep
dispatch:beforeException phalcon/cli/dispatcher.zep
dispatch:beforeException phalcon/mvc/dispatcher.zep
dispatch:beforeExecuteRoute phalcon/dispatcher.zep
dispatch:beforeNotFoundAction phalcon/dispatcher.zep
loader:afterCheckClass phalcon/loader.zep
loader:beforeCheckClass phalcon/loader.zep
loader:beforeCheckPath phalcon/loader.zep
loader:beforeCheckPath phalcon/loader.zep
loader:beforeCheckPath phalcon/loader.zep
loader:pathFound phalcon/loader.zep
loader:pathFound phalcon/loader.zep
loader:pathFound phalcon/loader.zep
loader:pathFound phalcon/loader.zep
micro:afterExecuteRoute phalcon/mvc/micro.zep
micro:afterHandleRoute phalcon/mvc/micro.zep
micro:beforeException phalcon/mvc/micro.zep
micro:beforeExecuteRoute phalcon/mvc/micro.zep
micro:beforeHandleRoute phalcon/mvc/micro.zep
micro:beforeNotFound phalcon/mvc/micro.zep
modelsManager:afterInitialize phalcon/mvc/model/manager.zep
router:afterCheckRoutes phalcon/mvc/router.zep
router:beforeCheckRoute phalcon/mvc/router.zep
router:beforeCheckRoutes phalcon/mvc/router.zep
router:matchedRoute phalcon/mvc/router.zep
router:notMatchedRoute phalcon/mvc/router.zep
view:afterRender phalcon/mvc/view/simple.zep
view:afterRender phalcon/mvc/view.zep
view:afterRenderView phalcon/mvc/view/simple.zep
view:afterRenderView phalcon/mvc/view.zep
view:beforeRender phalcon/mvc/view/simple.zep
view:beforeRender phalcon/mvc/view.zep
view:beforeRenderView phalcon/mvc/view/simple.zep
view:beforeRenderView phalcon/mvc/view.zep
view:notFoundView phalcon/mvc/view.zep

Thien
8.6k

This is shell tips :)

But tips for Phalcon :)


Thien
13.1k

Yes. Any way tip for Phalcon is welcome, we need to make Phalcon happy