-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesnt work with composer autoload #20
Comments
Same issue same answer: I do not have time nor will to deal with any third party product... If you are able to provide and maintain a generic yakpro-po.cnf file for composer, wordpress, ... or whatever other third party product, I will be very happy to provide a link to your repository... |
Can you explain to use
If can't make it work with composer, i need to exclude it Are they absolute or relative path? |
|
@tom29 relative paths are relative to the current working directory (the directory on which you are ) when you run yakpro-po...
and my current working directory is the projects root directory when i run the yakpro-po command |
@pk-fr i just found the way to correct here. Because it's insane, there are numerous of them :( |
@tom29 you have to ignore all classes, methodes, properties names ... |
if you want to make a generic yakpro-po.cnf that will be usable to others, you will have to declare and maintain everything... |
@pk-fr yeah, i know. i'm making a cnf files thinking about writing some script which can get all the classes, methods, properties inside one folder. or simply disable naming obfustation for all of them. Because some properties inside that folder can match with many other classes of mine. |
Hey, how's about |
by default: |
To use composer it is necessary not to change the namespace references, or to adapt each namespace consiquently. I have a configuration for composer, but adapted to Laravel |
good news... |
I will release a basic version for composer and one for laravel in the course of next week. Let you know when it's online :-) |
@Phil795 did this ever happen? ;) |
I'm afraid not. Switched to another payment solution in the same week. But I still have the config for Composer in a project. If the Composer configuration is sufficient for you, I can send it to you |
That would be great, thanks! |
Hello, Any news about the composer config? Thanks |
Unfortunately, I can no longer find the configuration. But I can show you how you can easily create it With this function you can print out all used namespaces. Build the output so that an array with the absolute namespaces is created and copy them into the config at public function getNamespaces()
{
$namespaces=array();
foreach(get_declared_classes() as $name) {
if(preg_match_all("@[^\\\]+(?=\\\)@iU", $name, $matches)) {
$matches = $matches[0];
$parent =&$namespaces;
while(count($matches)) {
$match = array_shift($matches);
if(!isset($parent[$match]) && count($matches))
$parent[$match] = array();
$parent =&$parent[$match];
}
}
}
print_r($namespaces);
} Hope it helps you |
Getting this error:
I believe it's relevant with this one: #13
The text was updated successfully, but these errors were encountered: