This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240752 - Dump autoload
Summary: Dump autoload
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Composer (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 10:59 UTC by BlackScorp
Modified: 2017-11-13 17:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BlackScorp 2014-01-21 10:59:51 UTC
Currently in the 8.0 beta there are view Composer features implemented.

While Add dependencies currently not really working, i miss a small feature which is used often.

"composer dumpautoload [-o]" to update the classmap without updating the dependencies
Comment 1 Tomas Mysik 2014-01-21 13:28:13 UTC
(In reply to BlackScorp from comment #0)
> While Add dependencies currently not really working, i miss a small feature
> which is used often.

Not working? Please report it as a new issue with exact steps to reproduce.

> "composer dumpautoload [-o]" to update the classmap without updating the
> dependencies

What is the use case for calling this command manually? Sorry for asking, just need to be sure that it will be helpful for most users.

Thanks.
Comment 2 BlackScorp 2014-01-21 14:06:31 UTC
composer dumpautoload updates the classloader file without updating the dependencies. 

composer updates the classloader after each composer update call, but sometimes you dont want to check if there is a new version of a dependency avaliable, you just want to update the classloader

composer dumpautoload -o put all classnames in a classmap file(-o means optimized) this option is usefull for production enviroment.

the autoload of composer checks specific directories for files, but before he walk throught directory, composer search first if the classname exists in classmap file.
Comment 3 CyRaid 2017-11-13 17:45:39 UTC
The use case is when you actually use the class map, and when you change the file structure while actively working on a private project. It would be extremely convenient to have.