Skip to content

mathus13/SimpleHooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages