MDL-58430 core_calendar: Keep interfaces with implementations
authorCameron Ball <cameron@moodle.com>
Thu, 30 Mar 2017 07:33:13 +0000 (15:33 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 4 Apr 2017 10:01:55 +0000 (11:01 +0100)
All interfaces have been moved from the interfaces folder such
that they now live with their default implementations.

Part of MDL-55611 epic.

43 files changed:
calendar/classes/action_factory.php
calendar/classes/external/event_action_exporter.php
calendar/classes/external/event_exporter.php
calendar/classes/external/event_icon_exporter.php
calendar/classes/external/events_related_objects_cache.php
calendar/classes/local/api.php
calendar/classes/local/event/core_container.php
calendar/classes/local/event/data_access/event_vault.php
calendar/classes/local/event/data_access/event_vault_interface.php [moved from calendar/classes/local/interfaces/event_vault_interface.php with 98% similarity]
calendar/classes/local/event/entities/action_event.php
calendar/classes/local/event/entities/action_event_interface.php [moved from calendar/classes/local/interfaces/action_event_interface.php with 96% similarity]
calendar/classes/local/event/entities/action_interface.php [moved from calendar/classes/local/interfaces/action_interface.php with 97% similarity]
calendar/classes/local/event/entities/event.php
calendar/classes/local/event/entities/event_collection_interface.php [moved from calendar/classes/local/interfaces/event_collection_interface.php with 96% similarity]
calendar/classes/local/event/entities/event_interface.php [moved from calendar/classes/local/interfaces/event_interface.php with 98% similarity]
calendar/classes/local/event/entities/repeat_event_collection.php
calendar/classes/local/event/factories/action_event_factory.php
calendar/classes/local/event/factories/action_event_factory_interface.php [moved from calendar/classes/local/interfaces/action_event_factory_interface.php with 90% similarity]
calendar/classes/local/event/factories/action_factory_interface.php [moved from calendar/classes/local/interfaces/action_factory_interface.php with 91% similarity]
calendar/classes/local/event/factories/event_abstract_factory.php
calendar/classes/local/event/factories/event_factory.php
calendar/classes/local/event/factories/event_factory_interface.php [moved from calendar/classes/local/interfaces/event_factory_interface.php with 92% similarity]
calendar/classes/local/event/mappers/event_mapper.php
calendar/classes/local/event/mappers/event_mapper_interface.php [moved from calendar/classes/local/interfaces/event_mapper_interface.php with 94% similarity]
calendar/classes/local/event/proxies/module_std_proxy.php
calendar/classes/local/event/proxies/proxy_interface.php [moved from calendar/classes/local/interfaces/proxy_interface.php with 98% similarity]
calendar/classes/local/event/proxies/std_proxy.php
calendar/classes/local/event/strategies/raw_event_retrieval_strategy.php
calendar/classes/local/event/strategies/raw_event_retrieval_strategy_interface.php [moved from calendar/classes/local/interfaces/raw_event_retrieval_strategy_interface.php with 98% similarity]
calendar/classes/local/event/value_objects/action.php
calendar/classes/local/event/value_objects/description_interface.php [moved from calendar/classes/local/interfaces/description_interface.php with 96% similarity]
calendar/classes/local/event/value_objects/event_description.php
calendar/classes/local/event/value_objects/event_times.php
calendar/classes/local/event/value_objects/times_interface.php [moved from calendar/classes/local/interfaces/times_interface.php with 97% similarity]
calendar/tests/action_event_factory_test.php
calendar/tests/action_event_test.php
calendar/tests/action_factory_test.php
calendar/tests/core_container_test.php
calendar/tests/event_factory_test.php
calendar/tests/event_mapper_test.php
calendar/tests/event_test.php
calendar/tests/helpers.php
calendar/tests/repeat_event_collection_test.php

index ab00bc7..118e3a2 100644 (file)
@@ -26,7 +26,7 @@ namespace core_calendar;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\action_factory_interface;
+use core_calendar\local\event\factories\action_factory_interface;
 use core_calendar\local\event\value_objects\action;
 
 /**
index d43c184..be43a9f 100644 (file)
@@ -27,8 +27,8 @@ namespace core_calendar\external;
 defined('MOODLE_INTERNAL') || die();
 
 use core\external\exporter;
+use core_calendar\local\event\entities\action_interface;
 use core_calendar\local\event\core_container;
-use core_calendar\local\interfaces\action_interface;
 use renderer_base;
 
 /**
@@ -113,7 +113,7 @@ class event_action_exporter extends exporter {
     protected static function define_related() {
         return [
             'context' => 'context',
-            'event' => '\\core_calendar\\local\\interfaces\\event_interface'
+            'event' => '\\core_calendar\\local\\event\\entities\\event_interface'
         ];
     }
 }
index d1bf3c6..225c9ad 100644 (file)
@@ -27,8 +27,7 @@ namespace core_calendar\external;
 defined('MOODLE_INTERNAL') || die();
 
 use \core\external\exporter;
-use \core_calendar\local\interfaces\event_interface;
-use \core_calendar\local\interfaces\action_event_interface;
+use \core_calendar\local\event\entities\event_interface;
 use \core_course\external\course_summary_exporter;
 use \renderer_base;
 
index 2aa510d..2895a40 100644 (file)
@@ -27,7 +27,7 @@ namespace core_calendar\external;
 defined('MOODLE_INTERNAL') || die();
 
 use \core\external\exporter;
-use \core_calendar\local\interfaces\event_interface;
+use \core_calendar\local\event\entities\event_interface;
 
 /**
  * Class for displaying a calendar event's icon.
index 063d623..b19fd60 100644 (file)
@@ -27,7 +27,7 @@ namespace core_calendar\external;
 defined('MOODLE_INTERNAL') || die();
 
 use context;
-use \core_calendar\local\interfaces\event_interface;
+use \core_calendar\local\event\entities\event_interface;
 use stdClass;
 
 /**
index 4aaefdb..145f904 100644 (file)
@@ -55,7 +55,7 @@ class api {
      * @param bool          $withduration          If true return only events starting within specified
      *                                             timestart otherwise return in progress events as well.
      * @param bool          $ignorehidden          If true don't return hidden events.
-     * @return \core_calendar\local\interfaces\event_interface[] Array of event_interfaces.
+     * @return \core_calendar\local\event\entities\event_interface[] Array of event_interfaces.
      */
     public static function get_events(
         $timestartfrom = null,
@@ -117,7 +117,15 @@ class api {
      * @param boolean $ignorehidden whether to select only visible events or all events
      * @return array $events of selected events or an empty array if there aren't any (or there was an error)
      */
-    public static function get_legacy_events($tstart, $tend, $users, $groups, $courses, $withduration = true, $ignorehidden = true) {
+    public static function get_legacy_events(
+        $tstart,
+        $tend,
+        $users,
+        $groups,
+        $courses,
+        $withduration = true,
+        $ignorehidden = true
+    ) {
         $fixedparams = array_map(function($param) {
             if ($param === true) {
                 return null;
index e9dc0f1..c5ac5ac 100644 (file)
@@ -32,12 +32,11 @@ defined('MOODLE_INTERNAL') || die();
 
 use core_calendar\action_factory;
 use core_calendar\local\event\data_access\event_vault;
+use core_calendar\local\event\entities\event_interface;
 use core_calendar\local\event\factories\action_event_factory;
 use core_calendar\local\event\factories\event_factory;
 use core_calendar\local\event\mappers\event_mapper;
 use core_calendar\local\event\strategies\raw_event_retrieval_strategy;
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\event_interface;
 
 /**
  * Core container.
@@ -57,7 +56,7 @@ class core_container {
     protected static $actioneventfactory;
 
     /**
-     * @var \core_calendar\local\interfaces\event_mapper_interface $eventmapper Event mapper.
+     * @var \core_calendar\local\event\mappers\event_mapper_interface $eventmapper Event mapper.
      */
     protected static $eventmapper;
 
@@ -67,12 +66,12 @@ class core_container {
     protected static $actionfactory;
 
     /**
-     * @var \core_calendar\local\event\data_access\event_vault $eventvault Event vault.
+     * @var event_vault $eventvault Event vault.
      */
     protected static $eventvault;
 
     /**
-     * @var \core_calendar\local\event\strategies\raw_event_retrieval_strategy $eventretrievalstrategy Event retrieval strategy.
+     * @var raw_event_retrieval_strategy $eventretrievalstrategy Event retrieval strategy.
      */
     protected static $eventretrievalstrategy;
 
@@ -175,7 +174,7 @@ class core_container {
     /**
      * Gets the event mapper.
      *
-     * @return \core_calendar\local\interfaces\event_mapper_interface
+     * @return event_mapper
      */
     public static function get_event_mapper() {
         self::init();
@@ -185,7 +184,7 @@ class core_container {
     /**
      * Return an event vault.
      *
-     * @return \core_calendar\local\event\data_access\event_vault
+     * @return event_vault
      */
     public static function get_event_vault() {
         self::init();
index a3a3930..8517e26 100644 (file)
@@ -26,12 +26,12 @@ namespace core_calendar\local\event\data_access;
 
 defined('MOODLE_INTERNAL') || die();
 
+use core_calendar\local\event\entities\action_event_interface;
+use core_calendar\local\event\entities\event_interface;
 use core_calendar\local\event\exceptions\limit_invalid_parameter_exception;
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\event_vault_interface;
-use core_calendar\local\interfaces\raw_event_retrieval_strategy_interface;
+use core_calendar\local\event\factories\action_factory_interface;
+use core_calendar\local\event\factories\event_factory_interface;
+use core_calendar\local\event\strategies\raw_event_retrieval_strategy_interface;
 
 /**
  * Event vault class.
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\data_access;
 
 defined('MOODLE_INTERNAL') || die();
 
+use core_calendar\local\event\entities\event_interface;
+
 /**
  * Interface for an event vault class
  *
index 99f082a..1c76999 100644 (file)
@@ -26,9 +26,7 @@ namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\action_interface;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\factories\action_factory_interface;
 
 /**
  * Class representing an actionable event.
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
index e13772f..cd5a1df 100644 (file)
@@ -26,11 +26,9 @@ namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\event_collection_interface;
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\proxy_interface;
-use core_calendar\local\interfaces\description_interface;
-use core_calendar\local\interfaces\times_interface;
+use core_calendar\local\event\proxies\proxy_interface;
+use core_calendar\local\event\value_objects\description_interface;
+use core_calendar\local\event\value_objects\times_interface;
 
 /**
  * Class representing a calendar event.
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
index 40c9096..4289cb3 100644 (file)
@@ -26,9 +26,7 @@ namespace core_calendar\local\event\entities;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\event_collection_interface;
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\factories\event_factory_interface;
 use core_calendar\local\event\exceptions\no_repeat_parent_exception;
 
 /**
index 26aa516..2b89ac6 100644 (file)
@@ -27,9 +27,8 @@ namespace core_calendar\local\event\factories;
 defined('MOODLE_INTERNAL') || die();
 
 use core_calendar\local\event\entities\action_event;
-use core_calendar\local\interfaces\action_event_factory_interface;
-use core_calendar\local\interfaces\action_interface;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\entities\action_interface;
+use core_calendar\local\event\entities\event_interface;
 
 /**
  * Action event factory class.
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\factories;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\action_interface;
+use core_calendar\local\event\entities\event_interface;
+use core_calendar\local\event\entities\action_interface;
 
 /**
  * Interface for an action event factory class.
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\factories;
 
 defined('MOODLE_INTERNAL') || die();
 
@@ -34,7 +34,7 @@ interface action_factory_interface {
      * @param \moodle_url $url        The action's URL.
      * @param int         $itemcount  The number of items needing action.
      * @param bool        $actionable The action's actionability.
-     * @return \core_calendar\local\interfaces\action_interface The action.
+     * @return \core_calendar\local\event\entities\action_interface The action.
      */
     public function create_instance($name, \moodle_url $url, $itemcount, $actionable);
 }
index 5f55e28..c3520f4 100644 (file)
@@ -33,9 +33,7 @@ use core_calendar\local\event\proxies\module_std_proxy;
 use core_calendar\local\event\proxies\std_proxy;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\action_event_factory_interface;
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\entities\event_interface;
 
 /**
  * Abstract factory for creating calendar events.
index 9cbbea5..9434f2a 100644 (file)
@@ -27,8 +27,7 @@ namespace core_calendar\local\event\factories;
 defined('MOODLE_INTERNAL') || die();
 
 use core_calendar\local\event\exceptions\invalid_callback_exception;
-use core_calendar\local\event\factories\event_abstract_factory;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\entities\event_interface;
 
 /**
  * Event factory class.
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\factories;
 
 defined('MOODLE_INTERNAL') || die();
 
@@ -37,7 +37,7 @@ interface event_factory_interface {
      * Creates an instance of an event.
      *
      * @param \stdClass $dbrow The event row from the database.
-     * @return \core_calendar\local\interfaces\event_interface
+     * @return \core_calendar\local\event\entities\event_interface
      */
     public function create_instance(\stdClass $dbrow);
 }
index 9464d88..ae50e7d 100644 (file)
@@ -26,10 +26,10 @@ namespace core_calendar\local\event\mappers;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\event_mapper_interface;
+use core_calendar\event;
+use core_calendar\local\event\entities\action_event_interface;
+use core_calendar\local\event\entities\event_interface;
+use core_calendar\local\event\factories\event_factory_interface;
 
 /**
  * Event mapper class.
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\mappers;
 
 defined('MOODLE_INTERNAL') || die();
 
+use core_calendar\event;
+use core_calendar\local\event\entities\event_interface;
+
 /**
  * Interface for an event mapper class
  *
index a93de09..1ad48fb 100644 (file)
@@ -26,8 +26,6 @@ namespace core_calendar\local\event\proxies;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\proxy_interface;
-
 /**
  * Course module stdClass proxy.
  *
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\proxies;
 
 defined('MOODLE_INTERNAL') || die();
 
index 5b0ac8d..e94746d 100644 (file)
@@ -26,7 +26,6 @@ namespace core_calendar\local\event\proxies;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\proxy_interface;
 use core_calendar\local\event\exceptions\member_does_not_exist_exception;
 
 /**
index dc888f2..7d18361 100644 (file)
@@ -26,8 +26,6 @@ namespace core_calendar\local\event\strategies;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\raw_event_retrieval_strategy_interface;
-
 /**
  * Raw event retrieval strategy.
  *
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\strategies;
 
 defined('MOODLE_INTERNAL') || die();
 
index 1b94aa8..f7aa538 100644 (file)
@@ -26,7 +26,7 @@ namespace core_calendar\local\event\value_objects;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\action_interface;
+use core_calendar\local\event\entities\action_interface;
 
 /**
  * Class representing an action a user should take
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\value_objects;
 
 defined('MOODLE_INTERNAL') || die();
 
index 7bf8771..3d4db69 100644 (file)
@@ -26,8 +26,6 @@ namespace core_calendar\local\event\value_objects;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\description_interface;
-
 /**
  * Class representing a description value object.
  *
index 2617133..511b59c 100644 (file)
@@ -26,8 +26,6 @@ namespace core_calendar\local\event\value_objects;
 
 defined('MOODLE_INTERNAL') || die();
 
-use core_calendar\local\interfaces\times_interface;
-
 /**
  * Class representing event times.
  *
@@ -22,7 +22,7 @@
  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
-namespace core_calendar\local\interfaces;
+namespace core_calendar\local\event\value_objects;
 
 defined('MOODLE_INTERNAL') || die();
 
index 4acd755..28ea484 100644 (file)
@@ -24,9 +24,9 @@
 
 defined('MOODLE_INTERNAL') || die();
 
+use core_calendar\local\event\entities\action_event_interface;
+use core_calendar\local\event\entities\event_interface;
 use core_calendar\local\event\factories\action_event_factory;
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\event_interface;
 use core_calendar\local\event\value_objects\action;
 
 /**
index d9d377f..c655f84 100644 (file)
@@ -28,8 +28,8 @@ use core_calendar\local\event\entities\action_event;
 use core_calendar\local\event\value_objects\action;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\event_collection_interface;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\entities\event_collection_interface;
+use core_calendar\local\event\entities\event_interface;
 
 /**
  * Action event testcase.
index 760a464..d58a477 100644 (file)
@@ -25,7 +25,7 @@
 defined('MOODLE_INTERNAL') || die();
 
 use core_calendar\action_factory;
-use core_calendar\local\interfaces\action_interface;
+use core_calendar\local\event\entities\action_interface;
 
 /**
  * Action factory testcase.
index 1daca8a..93d91bb 100644 (file)
@@ -26,11 +26,11 @@ defined('MOODLE_INTERNAL') || die();
 
 use core_calendar\local\event\entities\action_event;
 use core_calendar\local\event\entities\event;
+use core_calendar\local\event\entities\event_interface;
 use core_calendar\local\event\factories\event_factory;
+use core_calendar\local\event\factories\event_factory_interface;
 use core_calendar\local\event\mappers\event_mapper;
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\event_mapper_interface;
+use core_calendar\local\event\mappers\event_mapper_interface;
 
 /**
  * Core container testcase.
index fe369f7..b2f3039 100644 (file)
@@ -28,7 +28,7 @@ global $CFG;
 require_once($CFG->dirroot . '/calendar/lib.php');
 
 use core_calendar\local\event\factories\event_factory;
-use core_calendar\local\interfaces\event_interface;
+use core_calendar\local\event\entities\event_interface;
 
 /**
  * Event factory testcase.
index 472924b..67738f4 100644 (file)
@@ -31,11 +31,12 @@ use core_calendar\local\event\mappers\event_mapper;
 use core_calendar\local\event\value_objects\action;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\action_event_interface;
-use core_calendar\local\interfaces\event_collection_interface;
-use core_calendar\local\interfaces\event_factory_interface;
-use core_calendar\local\interfaces\event_interface;
-use core_calendar\local\interfaces\proxy_interface;
+use core_calendar\local\event\factories\action_factory_interface;
+use core_calendar\local\event\entities\event_collection_interface;
+use core_calendar\local\event\factories\event_factory_interface;
+use core_calendar\local\event\entities\event_interface;
+use core_calendar\local\event\entities\action_event_interface;
+use core_calendar\local\event\proxies\proxy_interface;
 
 /**
  * Event mapper testcase.
@@ -123,6 +124,7 @@ class core_calendar_event_mapper_testcase extends advanced_testcase {
             new event_mapper_test_event_factory()
         );
         $legacyevent = $mapper->from_event_to_legacy_event($event);
+
         $this->assertInstanceOf(calendar_event::class, $legacyevent);
         $this->assertEquals($legacyevent->actionname, 'test action');
         $this->assertInstanceOf(\moodle_url::class, $legacyevent->actionurl);
index cbf85b5..c1ddaf9 100644 (file)
@@ -28,7 +28,7 @@ use core_calendar\local\event\entities\event;
 use core_calendar\local\event\proxies\std_proxy;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\event_collection_interface;
+use core_calendar\local\event\entities\event_collection_interface;
 
 /**
  * Event testcase.
index b3e3404..c990d4d 100644 (file)
@@ -35,7 +35,7 @@ use core_calendar\local\event\proxies\std_proxy;
 use core_calendar\local\event\value_objects\action;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\event_factory_interface;
+use core_calendar\local\event\factories\event_factory_interface;
 
 /**
  * Create a calendar event with the given properties.
index b8f46a4..4f3ad61 100644 (file)
@@ -29,7 +29,7 @@ use core_calendar\local\event\entities\repeat_event_collection;
 use core_calendar\local\event\proxies\std_proxy;
 use core_calendar\local\event\value_objects\event_description;
 use core_calendar\local\event\value_objects\event_times;
-use core_calendar\local\interfaces\event_factory_interface;
+use core_calendar\local\event\factories\event_factory_interface;
 
 /**
  * Repeat event collection tests.