Moved events classes.
This commit is contained in:
1 parent
c966fb1552
commit
b709f968f9
7 files changed
+9
-7
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main set of events for WordPress core
|
* Main set of events for WordPress core
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events for Genesis Framework based themes
|
* Events for Genesis Framework based themes
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events for Hybrid Core based themes
|
* Events for Hybrid Core based themes
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for bulk event providers
|
* Base class for bulk event providers
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events for Theme Hook Alliance
|
* Events for Theme Hook Alliance
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps\Events;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events for Yoast plugins
|
* Events for Yoast plugins
|
||||||
+3
-1
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace Rarst\Laps;
|
namespace Rarst\Laps;
|
||||||
|
|
||||||
|
use Rarst\Laps\Events\Core_Events;
|
||||||
|
use Rarst\Laps\Events\Laps_Events;
|
||||||
use Symfony\Component\Stopwatch\Stopwatch;
|
use Symfony\Component\Stopwatch\Stopwatch;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -178,7 +180,7 @@ class Laps {
|
|||||||
|
|
||||||
foreach ( [ 'THA', 'Hybrid', 'Genesis', 'Yoast' ] as $vendor ) {
|
foreach ( [ 'THA', 'Hybrid', 'Genesis', 'Yoast' ] as $vendor ) {
|
||||||
|
|
||||||
$class = "Rarst\\Laps\\{$vendor}_Events";
|
$class = "Rarst\\Laps\\Events\\{$vendor}_Events";
|
||||||
/** @var Laps_Events $events */
|
/** @var Laps_Events $events */
|
||||||
$events = new $class;
|
$events = new $class;
|
||||||
$this->add_events( $events->get() );
|
$this->add_events( $events->get() );
|
||||||
|
|||||||
Reference in new issue
Block a user