Laravel Valet Nette Support
- wise
- Member | 161
Few weeks ago Laravel's team published their new tool Valet (https://github.com/laravel/valet).
I need to write new driver for my Nette applications, my question is, “What is the best way to identify Nette framework from files?”
Take a look at current drivers, specially their method
serves
.
https://github.com/…/cli/drivers
For example Wordpress is defined by wp-config.php file (https://github.com/…etDriver.php), Symfony this way: https://github.com/…etDriver.php.
What do you think?
Thank you.
Jakub
- Myiyk
- Member | 321
Project is probably running on Nette FW, if exist
directory vendor/nette/application
------ edit ------
Majkl578 wrote:
Besides presence in vendor,
app/bootstrap.php
andwww/.maintenance.php
could be also considered unique for Nette (especially if you check its contents).www/index.php
only if you check its contents. Maybe also any*.neon
file insideapp/config
.
Actually I think relying on vendor/nette is not a good approach since many users may use just a single component, e.g. nette/utils in non-Nette (e.g. in Symfony) application.
is better
Last edited by Myiyk (2016-05-22 00:34)
- Majkl578
- Moderator | 1364
Besides presence in vendor, app/bootstrap.php
and
www/.maintenance.php
could be also considered unique for Nette
(especially if you check its contents). www/index.php
only if you
check its contents. Maybe also any *.neon
file inside
app/config
.
Actually I think relying on vendor/nette is not a good approach since many
users may use just a single component, e.g. nette/utils in non-Nette (e.g. in
Symfony) application.
- Majkl578
- Moderator | 1364
but vendor/nette/application exist if project use presenters. Nette/Application is core of Nette projects.
Or it might just be an indirect dependency of any of your dependencies…
nette/application
has 327 known dependents on Packagist
- Myiyk
- Member | 321
You are right.
Majkl578 wrote:
Besides presence in vendor,
app/bootstrap.php
andwww/.maintenance.php
could be also considered unique for Nette (especially if you check its contents).www/index.php
only if you check its contents. Maybe also any*.neon
file insideapp/config
.
Actually I think relying on vendor/nette is not a good approach since many users may use just a single component, e.g. nette/utils in non-Nette (e.g. in Symfony) application.
is best solution
Last edited by Myiyk (2016-05-22 00:32)