<?xml version="1.0"?>
<events xmlns:e="http://www.atomikframework.com/events">
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Start">
		<description>
			Fired once the bootstrap file has been loaded and all plugins are ready.
		</description>
		<refparam name="$cancel" type="boolean">Set to true to cancel the dispatch process. Will exit Atomik.</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Error">
		<description>
			Fired when an error occurs (<pre>catch_errors</pre> needs to ne true).
		</description>
		<param name="$exception" type="Exception">The thrown exception</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatch::Start">
		<description>
			Fired at the start of the method
		</description>
		<refparam name="$uri" type="string">The uri that is being dispatched.</refparam>
		<refparam name="$allowPluggableApplication" type="boolean">Whether pluggable applications are allowed during this dispatch.</refparam>
		<refparam name="$cancel" type="boolean">Set to true to cancel the dispatch process. Will exit Atomik.</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatch::Uri">
		<description>
			Fired once the uri has been computed. Do not use request_uri or request config keys but the event's params.
		</description>
		<refparam name="$uri" type="string">The uri that is being dispatched.</refparam>
		<refparam name="$request" type="array">Request parameters.</refparam>
		<refparam name="$cancel" type="boolean">Set to true to cancel the dispatch process. Will exit Atomik.</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatch::Before">
		<description>
			Fired once the request has been routed and before the call to <pre>pre_dispatch.php</pre>.
		</description>
		<refparam name="$cancel" type="boolean">Set to true to cancel the dispatch process. Will exit Atomik.</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Output::Before">
		<description>
			Fired before content is echoed.
		</description>
		<refparam name="$output" type="string">The content that will be echoed</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Output::After">
		<description>
			Fired after content has been echoed.
		</description>
		<param name="$output" type="string">The content that has been echoed</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatch::After">
		<description>
			Fired after the view (and the layout) has been rendered and before the call to <pre>pre_dispatch.php</pre>.
		</description>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Router::Start">
		<description>
			Fired when the router starts
		</description>
		<refparam name="$uri" type="string">The uri to route</refparam>
		<refparam name="$routes" type="array">Routes</refparam>
		<refparam name="$params" type="array">Params</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Router::End">
		<description>
			Fired when the router starts
		</description>
		<param name="$uri" type="string">The uri to route</param>
		<refparam name="$request" type="array">Request parameters</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Execute::Start">
		<description>
			Fired at the beginning of a call to the <code>Atomik::execute()</code> method.
		</description>
		<refparam name="$action" type="string">The action name</refparam>
		<refparam name="$context" type="array">The context associated to the action</refparam>
		<refparam name="$triggerError" type="boolean">Whether to throw an exception when the action and the view files are missing</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Execute::Before">
		<description>
			Fired before the inclusion of the action file.
		</description>
		<refparam name="$action" type="string">The action name</refparam>
		<refparam name="$context" type="array">The context associated to the action</refparam>
		<refparam name="$actionFilename" type="string">The action file's name</refparam>
		<refparam name="$methodActionFilename" type="string">The method action file's name</refparam>
		<refparam name="$triggerError" type="boolean">Whether to throw an exception when the action and the view files are missing</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Execute::After">
		<description>
			Fired after the inclusion of the action file.
		</description>
		<param name="$action" type="string">The action name</param>
		<refparam name="$context" type="array">The context associated to the action</refparam>
		<refparam name="$vars" type="array">Variables defined in the action file</refparam>
		<refparam name="$triggerError" type="boolean">Whether to throw an exception when the action and the view files are missing</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Executefile">
		<description>
			Fired at the beginning of a call to the <code>Atomik::executeFile()</code> method.
		</description>
		<refparam name="$filename" type="string">The filename that will be included</refparam>
		<refparam name="$vars" type="array">Variables to extract in the included file scope</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Render::Start">
		<description>
			Fired at the beginning of a call to <code>Atomik::render()</code>.
		</description>
		<refparam name="$view" type="string">The view name</refparam>
		<refparam name="$vars" type="array">Variables for the view file</refparam>
		<refparam name="$dirs" type="array">Directories where to find the view</refparam>
		<refparam name="$triggerError" type="boolean">Whether to throw an exception when the view file is missing</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Render::Before">
		<description>
			Fired before the inclusion of the view file.
		</description>
		<refparam name="$view" type="string">The view name</refparam>
		<refparam name="$vars" type="array">Variables for the view file</refparam>
		<refparam name="$filename" type="string">The view files's name</refparam>
		<param name="$triggerError" type="boolean">Whether to throw an exception when the view file is missing</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Render::After">
		<description>
			Fired after the inclusion of the view file.
		</description>
		<param name="$view" type="string">The view name</param>
		<refparam name="$output" type="string">The view output</refparam>
		<param name="$vars" type="array">Variables for the view file</param>
		<param name="$filename" type="string">The view files's name</param>
		<param name="$triggerError" type="boolean">Whether to throw an exception when the view file is missing</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Renderfile::Before">
		<description>
			Fired at the beginning of a call to <code>Atomik::renderFile()</code>.
		</description>
		<refparam name="$filename" type="string">Filename of the file that will be rendered</refparam>
		<refparam name="$vars" type="array">Variables for the view file</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Renderfile::After">
		<description>
			Fired after the inclusion of the file.
		</description>
		<param name="$filename" type="string">Filename of the file that will be rendered</param>
		<refparam name="$output" type="string">The output of the rendered file</refparam>
		<param name="$vars" type="array">Variables for the view file</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Renderlayout">
		<description>
			Fired at the beginning of a call to <code>Atomik::renderLayout()</code>.
		</description>
		<refparam name="$layout" type="string">The layout name</refparam>
		<refparam name="$content" type="string">The content for the layout</refparam>
		<refparam name="$vars" type="array">Variables for the layout</refparam>
		<refparam name="$triggerError" type="boolean">Whether to throw an exception when the layout file is missing</refparam>
		<refparam name="$dirs" type="array">Directories where to find layouts</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::End">
		<description>
			Fired when Atomik exits
		</description>
		<param name="$success" type="boolean">Whether it exits on success</param>
		<refparam name="$writeSession" type="boolean">Whether to call session_write_close() before exiting</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Loadhelper::Before">
		<description>
			Fired before an helper is loaded
		</description>
		<refparam name="$helper" type="string">Helper's name</refparam>
		<refparam name="$dirs" type="array">Directories where to search for helpers</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Loadhelper::After">
		<description>
			Fired after an helper has been loaded
		</description>
		<param name="$helper" type="string">Helper's name</param>
		<param name="$dirs" type="array">Directories where to search for helpers</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Plugin::Before">
		<description>
			Fired before a plugin is loaded
		</description>
		<refparam name="$plugin" type="string">Plugin's name</refparam>
		<refparam name="$config" type="array">Plugin's configuration</refparam>
		<refparam name="$options" type="array">Options for the plugin loader</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Plugin::After">
		<description>
			Fired after a plugin has been loaded
		</description>
		<param name="$plugin" type="string">Plugin's name</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Registerpluggableapplication">
		<description>
			Fired before a pluggable application is registered
		</description>
		<refparam name="$plugin" type="string">App's name</refparam>
		<refparam name="$route" type="string">The route that will triggered the app</refparam>
		<refparam name="$config" type="array">App's configuration</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatchpluginapplication::Ready">
		<description>
			Fired when a pluggable application configuration has been computed
		</description>
		<refparam name="$plugin" type="string">App's name</refparam>
		<refparam name="$uri" type="string">The uri that will be used for the app</refparam>
		<param name="$config" type="array">App's configuration</param>
		<refparam name="$cancel" type="boolean">To cancel the dispatch</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Dispatchpluginapplication::Start">
		<description>
			Fired before a pluggable application is going to be dispatched, after the Application.php file has been included
		</description>
		<refparam name="$plugin" type="string">App's name</refparam>
		<refparam name="$uri" type="string">The uri that will be used for the app</refparam>
		<param name="$config" type="array">App's configuration</param>
		<refparam name="$cancel" type="boolean">To cancel the dispatch</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Url">
		<description>
			Fired after a url has been computed
		</description>
		<param name="$action" type="string">The action for which the url has been computed</param>
		<refparam name="$url" type="string">The computed url</refparam>
		<param name="$args" type="array">All arguments passed to the function except the first one</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Flash">
		<description>
			Fired when a flash message is created
		</description>
		<refparam name="$message" type="string">The message</refparam>
		<refparam name="$label" type="string">The associated label</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Needed">
		<description>
			Fired after a url has been computed
		</description>
		<refparam name="$include" type="string">The file to include</refparam>
		<refparam name="$className" type="boolean">Whether the $include parameter can be a class name</refparam>
		<refparam name="$dirs" type="array">Directories where to search for the file</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Redirect">
		<description>
			Fired before a redirection
		</description>
		<refparam name="$url" type="string">The url to redirect to</refparam>
		<refparam name="$className" type="boolean">Whether to apply <code>Atomik::url()</code> on the $url</refparam>
		<refparam name="$httpCode" type="int">The redirection HTTP code</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::404">
		<description>
			Fired when a call to <code>Atomik::trigger404()</code> is made.
		</description>
		<refparam name="$cancel" type="boolean">To avoid the error to be processed</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Log">
		<description>
			Fired when a message is logged
		</description>
		<param name="$message" type="string">The message</param>
		<param name="$level" type="int">The associated level</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Atomik::Debug">
		<description>
			Fired when a call to debug is made
		</description>
		<refparam name="$data" type="mixed">The data to dump</refparam>
		<refparam name="$force" type="boolean">Whether to force the dump when debug is set to false</refparam>
		<refparam name="$echo" type="boolean">Whether to echo or return the result</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Console::Start">
		<description>
			Fired when the console starts
		</description>
		<refparam name="$command" type="string">The command</refparam>
		<refparam name="$arguments" type="array">Arguments from the command line</refparam>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Console::End">
		<description>
			Fired when the console ends
		</description>
		<param name="$command" type="string">The command</param>
		<param name="$arguments" type="array">Arguments from the command line</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Console::Init">
		<description>
			Fired when the init command is called after all default actions has been executed
		</description>
		<param name="$arguments" type="array">Arguments from the command line</param>
	</event>
  <event xmlns="http://www.atomikframework.com/events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Console::Generate">
		<description>
			Fired when the generate command is called
		</description>
		<param name="$action" type="string">The action for which the generate command has been called</param>
	</event>
</events>

