1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-19 04:12:08 +02:00

event system and plugins

This commit is contained in:
Sebastian
2017-11-17 17:44:02 +01:00
parent 53aaba7a57
commit f3f2c0cb07
45 changed files with 3654 additions and 130 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Typemill\Events;
use Symfony\Component\EventDispatcher\Event;
/**
* Event for the pure content.
*/
class LoadMarkdownEvent extends Event
{
protected $data;
public function __construct($data)
{
$this->data = $data;
}
public function getData()
{
return $this->data;
}
public function setData($data)
{
$this->data = $data;
}
}

View File

@@ -0,0 +1,29 @@
<?php
namespace Typemill\Events;
use Symfony\Component\EventDispatcher\Event;
/**
* Event for the folder structure.
*/
class LoadStructureEvent extends Event
{
protected $data;
public function __construct($data)
{
$this->data = $data;
}
public function getData()
{
return $this->data;
}
public function setData($data)
{
$this->data = $data;
}
}

View File

@@ -0,0 +1,29 @@
<?php
namespace Typemill\Events;
use Symfony\Component\EventDispatcher\Event;
/**
* Event for the pure content.
*/
class ParseHtmlEvent extends Event
{
protected $data;
public function __construct($data)
{
$this->data = $data;
}
public function getData()
{
return $this->data;
}
public function setData($data)
{
$this->data = $data;
}
}

View File

@@ -0,0 +1,29 @@
<?php
namespace Typemill\Events;
use Symfony\Component\EventDispatcher\Event;
/**
* Event for the pure content.
*/
class RenderSiteEvent extends Event
{
protected $data;
public function __construct($data)
{
$this->data = $data;
}
public function getData()
{
return $this->data;
}
public function setData($data)
{
$this->data = $data;
}
}