aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/fixtures/ext/foo/bar/event
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-09-19 18:29:08 +0200
committerNils Adermann <naderman@naderman.de>2013-09-19 18:29:08 +0200
commitfe36375a36ec4f816eb07b41630b6c9fa7ff12c8 (patch)
tree96e1122b07586d8802601fcfeea7d45b398b5e08 /tests/functional/fixtures/ext/foo/bar/event
parentf205c4fad4c3a82cc4a47beb7f9a8025669a3acb (diff)
downloadforums-fe36375a36ec4f816eb07b41630b6c9fa7ff12c8.tar
forums-fe36375a36ec4f816eb07b41630b6c9fa7ff12c8.tar.gz
forums-fe36375a36ec4f816eb07b41630b6c9fa7ff12c8.tar.bz2
forums-fe36375a36ec4f816eb07b41630b6c9fa7ff12c8.tar.xz
forums-fe36375a36ec4f816eb07b41630b6c9fa7ff12c8.zip
[ticket/11700] Fix extension loading with namespaces
class loader now expects all classes to be prefixed with a backslash when resolving paths PHPBB3-11700
Diffstat (limited to 'tests/functional/fixtures/ext/foo/bar/event')
-rw-r--r--tests/functional/fixtures/ext/foo/bar/event/permission.php4
-rw-r--r--tests/functional/fixtures/ext/foo/bar/event/user_setup.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/functional/fixtures/ext/foo/bar/event/permission.php b/tests/functional/fixtures/ext/foo/bar/event/permission.php
index 48688a586a..92e24074ad 100644
--- a/tests/functional/fixtures/ext/foo/bar/event/permission.php
+++ b/tests/functional/fixtures/ext/foo/bar/event/permission.php
@@ -8,6 +8,8 @@
*
*/
+namespace foo\bar\event;
+
/**
* @ignore
*/
@@ -22,7 +24,7 @@ if (!defined('IN_PHPBB'))
*/
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-class phpbb_ext_foo_bar_event_permission implements EventSubscriberInterface
+class permission implements EventSubscriberInterface
{
static public function getSubscribedEvents()
{
diff --git a/tests/functional/fixtures/ext/foo/bar/event/user_setup.php b/tests/functional/fixtures/ext/foo/bar/event/user_setup.php
index 3d2d0c5325..1409f97470 100644
--- a/tests/functional/fixtures/ext/foo/bar/event/user_setup.php
+++ b/tests/functional/fixtures/ext/foo/bar/event/user_setup.php
@@ -8,6 +8,8 @@
*
*/
+namespace foo\bar\event;
+
/**
* @ignore
*/
@@ -22,7 +24,7 @@ if (!defined('IN_PHPBB'))
*/
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-class phpbb_ext_foo_bar_event_user_setup implements EventSubscriberInterface
+class user_setup implements EventSubscriberInterface
{
static public function getSubscribedEvents()
{