Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleHooks

Simple hook system

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

Invoke with an associative array containing topic keys with arrays of class (instance of an object) and method

####Example####

$hooks = array(
	'\Ethereal\Config\Build' => array(
		array(
			'class' => new \Ethereal\Listener(),
			'method' => 'buildConfig'
		)
	)
);
$hookSystem = new \Ethereal\Hooks($hooks);

The buildConfig hook will be passed an array to parse and return.

About

Simple hook system

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages