atom-autocomplete-php icon indicating copy to clipboard operation
atom-autocomplete-php copied to clipboard

Local variable & require()

Open Arkshine opened this issue 9 years ago • 1 comments

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!

Arkshine avatar Sep 18 '16 13:09 Arkshine

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.

Peekmo avatar Sep 19 '16 08:09 Peekmo