# shiftcontroller/4.9.85/sh4/_wordpress/platform/boot.php

ShiftController Employee Shift Scheduling, version 4.9.85. 32 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.85/code/sh4/_wordpress/platform/boot.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.85/raw/sh4/_wordpress/platform/boot.php
- Modified: 2023-05-19T10:13:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shiftcontroller/4.9.85/code/sh4/_wordpress/platform/boot.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
class SH4_Platform_Boot
{
	public function __construct(
		HC3_Settings $settings,
		HC3_Hooks $hooks,
		HC3_Router $router
	)
	{
		$defaultEmail = 'info@' . $_SERVER['SERVER_NAME'];

		$settings
			->init( 'email_from', $defaultEmail )
			->init( 'email_fromname', 'ShiftController' )
			->init( 'email_html', '1' )
			;

		$hooks
			->add( 'sh4/app/html/view/admin::menu::after', function( $ret ){
				$ret['32-admin/email'] = array( 'admin/conf/email', '__Email__' );
				$ret['33-admin/publish'] = array( 'admin/publish', '__Front End__' );
				return $ret;
			})
			;

		$router
			->register( 'get:admin/conf/email', array('SH4_Conf_Html_Admin_View_Email', 'render') )
			->register( 'post:admin/conf/email', array('SH4_Conf_Html_Admin_Controller_Email', 'execute') )
			->register( 'get:admin/publish', array('SH4_Conf_Html_Admin_View_Publish', 'render') )
			;
	}
}
```
