Skip to main content
Topic: Class 'BBC\Autolink' not found (Read 4802 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Class 'BBC\Autolink' not found

Reply #15

Fixed.

I didn't know patch files could create commits.
LiveGallery - Simple gallery addon for ElkArte

Re: Class 'BBC\Autolink' not found

Reply #16

Neither did I... lol
Bugs creator.
Features destroyer.
Template killer.

Re: Class 'BBC\Autolink' not found

Reply #17

Code: [Select]
namespace BBC;
Code: [Select]
interface Database
Code: [Select]
namespace ElkArte\sources\modules;

Do not you think that it is necessary to use a single namespace for the entire project?

http://www.php-fig.org/psr/psr-4/

Example:
Code: [Select]
\Elk\Sources\Database\DB;
\Elk\Sources\Subs\BBC;
\Elk\...

(I think I already wrote about this)
Sorry for my English

Re: Class 'BBC\Autolink' not found

Reply #18

https://github.com/elkarte/Elkarte/issues/2809 <= best place for this discussion! :D
Bugs creator.
Features destroyer.
Template killer.

Re: Class 'BBC\Autolink' not found

Reply #19

my include path, before error

php 7.1

Code: [Select]
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
C:\apache\php\localhost\www\elk11-fix/addons;
C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs/CacheMethod;
\BBC;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
C:\apache\php\localhost\www\elk11-fix/addons;
C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs/CacheMethod;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
C:\apache\php\localhost\www\elk11-fix/addons;
C:\apache\php\localhost\www\elk11-fix/sources;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
C:\apache\php\localhost\www\elk11-fix/addons;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
.;
.C:\apache\php\localhost\www\elk11-fix/sources;
.;
.;
C:\php\pear

next
Code: [Select]
.C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs;
C:\apache\php\localhost\www\elk11-fix/sources/controllers;
C:\apache\php\localhost\www\elk11-fix/sources/admin;
C:\apache\php\localhost\www\elk11-fix/addons;
C:\apache\php\localhost\www\elk11-fix/sources;
C:\apache\php\localhost\www\elk11-fix/sources/subs/CacheMethod;
\BBC;
C:\apache\php\localhost\www\elk11-fix/sources/subs/MentionType;

error
Last Edit: January 11, 2017, 02:34:15 pm by inter
Sorry for my English

Re: Class 'BBC\Autolink' not found

Reply #20

Did you already try the patch?
Bugs creator.
Features destroyer.
Template killer.

Re: Class 'BBC\Autolink' not found

Reply #21

how to save? there is a conflict. manually like there is no errors
Sorry for my English

Re: Class 'BBC\Autolink' not found

Reply #22

Okay, back a second: are you using the beta 4 or the HEAD of the repository?
Bugs creator.
Features destroyer.
Template killer.

Re: Class 'BBC\Autolink' not found

Reply #23

I'll wait rc1
Sorry for my English

Re: Class 'BBC\Autolink' not found

Reply #24

BTW, I wrote the BBC as a root namespace because I was hoping it would become its own project.

Re: Class 'BBC\Autolink' not found

Reply #25

I remember, honestly the current solution is just a workaround, in 2.0 we should better fix the issue.
Also, since the idea is to have a completely separated project, the most appropriated place for the code is the ext directory. ;)
Bugs creator.
Features destroyer.
Template killer.