-
Notifications
You must be signed in to change notification settings - Fork 1
/
IPhpRuntimeEventHandler.cs
40 lines (35 loc) · 1.11 KB
/
IPhpRuntimeEventHandler.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Orchard.Events;
using OrchardHUN.Scripting.Services;
using PHP.Core;
namespace OrchardHUN.Scripting.Php
{
public interface IPhpRuntimeEventHandler : IEventHandler
{
void BeforeExecution(BeforePhpExecutionContext context);
void AfterExecution(AfterPhpExecutionContext context);
}
public abstract class PhpScriptingEventContext
{
public ScriptScope Scope { get; set; }
public ScriptContext Context { get; private set; }
protected PhpScriptingEventContext(ScriptScope scope, ScriptContext context)
{
Scope = scope;
Context = context;
}
}
public class BeforePhpExecutionContext : PhpScriptingEventContext
{
public BeforePhpExecutionContext(ScriptScope scope, ScriptContext context)
: base(scope, context)
{
}
}
public class AfterPhpExecutionContext : PhpScriptingEventContext
{
public AfterPhpExecutionContext(ScriptScope scope, ScriptContext context)
: base(scope, context)
{
}
}
}