Skip to content
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

Please add psr-4-autoload entry in ext_emconf.php #16

Closed
mediaessenz opened this issue Jan 25, 2017 · 4 comments
Closed

Please add psr-4-autoload entry in ext_emconf.php #16

mediaessenz opened this issue Jan 25, 2017 · 4 comments

Comments

@mediaessenz
Copy link
Contributor

'autoload' => array(
	'psr-4' => [
		'Tx\\Tinyurls\\' => 'Classes',
	],
),

Change vendor name "Tx" to something better (see #15 )

@astehlik
Copy link
Owner

astehlik commented Feb 1, 2017

Do you currently experience problems with autoloading in non Composer mode? Normally TYPO3 should be able to extract the autoload information from the composer.json file, even in non composer mode.

@mediaessenz
Copy link
Contributor Author

See: http://insight.helhum.io/post/130876393595/how-to-configure-class-loading-for-extensions-in
especially the sentence:
Note: If you do so, newly added classes during development can be resolved automatically, without any further action! There is no need to update your class information files!

@astehlik
Copy link
Owner

astehlik commented Feb 1, 2017

Thanks for your information.

Below there is another interesting sentence:

If your extension has a composer.json file already with a psr-4 or classmap autoload section, you are done. No further action is required.

When using PSR-4 for autoloading new classes are also detected automatically without further action (at least this is my experience).

If you do not experience any problems with class loading I would close this issue.

@mediaessenz
Copy link
Contributor Author

Good to know :-)
In this case, please close this issue.

@astehlik astehlik closed this as completed Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants