Maybe something like this:

```c
PHP_METHOD(Phalcon_Events_Manager, detachAll);

/* ... */
PHP_ME(Phalcon_Events_Manager, detachAll, arginfo_phalcon_events_manager_detachall, ZEND_ACC_PUBLIC)
PHP_MALIAS(Phalcon_Events_Manager, dettachAll, detachAll, arginfo_phalcon_events_manager_detachall, ZEND_ACC_PUBLIC | ZEND_ACC_DEPRECATED)
```

Notes:
  * you need only one arginfo as both methods are the same
  * there will be only one method implementation — `PHP_METHOD(Phalcon_Events_Manager, detachAll);`; no need to declare `dettachAll` anywhere as it will be created as an alias in the method table by Zend Engine.