atom-autocomplete-php
atom-autocomplete-php copied to clipboard
Local variable & require()
Hi,
I'm playing with Slim PHP micro-framework and using an existing skeleton with the following structures:
project
-- public
-- src
-- templates
-- tests
-- vendor
public/index.php contains this kind of code:
$app = new \Slim\App($settings);
require __DIR__ . '/../src/dependencies.php';
require __DIR__ . '/../src/middleware.php';
require __DIR__ . '/../src/routes.php';
$app->run();
The issue is that nothing is triggered with$apps variable in the required files.
Did I miss something? Is there something you can do to make it work?
I'm using the latest of everything (fresh installation).
Thanks!
Hello,
This plugin could, but is not planned to work with non OOP files.
So, if you're not in a class, it will probably not work, that's why you don't have completion in your index.php
It could be a feature to support non OOP files, but for now, it's not supported sorry.