lochmueller / autoloader
Automatic components loading of ExtBase extensions to get more time for coffee in the company ;) This ext is not a PHP SPL autoloader or class loader - it is better! Loads CommandController, Xclass, Hooks, FlexForms, Slots, TypoScript, TypeConverter, BackendLayouts and take care of createing needed
Fund package maintenance!
lochmueller
paypal.me/lochmueller
Installs: 311 183
Dependents: 6
Suggesters: 0
Security: 0
Stars: 20
Watchers: 6
Forks: 31
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.4||^8.0
- typo3/cms-core: ^10.4.6||^11.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.2
- rector/rector: ^0.12.9
- scrutinizer/ocular: ^1.3
- typo3/testing-framework: ^6.2
Replaces
- typo3-ter/autoloader: 7.4.6
- dev-master
- 7.4.6
- 7.4.5
- 7.4.4
- 7.4.3
- 7.4.2
- 7.4.1
- 7.4.0
- 7.3.9
- 7.3.8
- 7.3.7
- 7.3.6
- 7.3.5
- 7.3.4
- 7.3.3
- 7.3.2
- 7.3.1
- 7.3.0
- 7.2.6
- 7.2.5
- 7.2.4
- 7.2.3
- 7.2.2
- 7.2.1
- 7.2.0
- 7.1.4
- 7.1.3
- 7.1.2
- 7.1.1
- 7.1.0
- 7.0.2
- 7.0.1
- 6.2.1
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.1.0
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.2.1
- 2.2.0
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
This package is auto-updated.
Last update: 2024-10-11 10:46:01 UTC
README
Autoloader: Swiss Knife for Developers
Autoloader speeds up your development cycle - more time for coffee!
Autoloader Annotations
/** * @DatabaseTable(tableName="") * @DatabaseKey([key=""|argumentName=""]) * @DatabaseField(type=""[, sql=""]) * * @EnableRichText([value=""|argumentName=""]) * @Hook(locations={}) * @NoCache([value=""|argumentName=""]) * @NoHeader([value=""|argumentName=""]) * @ParentClass(parentClass="") * @Plugin([value=""|argumentName=""]) * @RecordType(recordType="") * @SignalClass([value=""|argumentName=""]) * @SignalName([value=""|argumentName=""]) * @SignalPriority([value=""|argumentName=""]) * @SmartExclude(excludes="{}") * @WizardTab(config="") * */
Working Examples
We drop the examples in EXT:autoloader. Please check other extensions tht use autoloader as example (EXT:calendarize)
Example for a SmartObject (Only one of the features)
ext_tables.php
\HDNET\Autoloader\Loader::extTables( 'vendorName', 'extensionKey', [ 'SmartObjects', 'TcaFiles' ] );
ext_localconf.php
\HDNET\Autoloader\Loader::extLocalconf( 'vendorName', 'extensionKey' [ 'SmartObjects', 'TcaFiles' ] );
Test.php
namespace vendorName\extensionKey\Domain\Model; use HDNET\Autoloader\Annotation\DatabaseField; use HDNET\Autoloader\Annotation\DatabaseTable; use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; /** * Create a test-table for this model with this annotation. * @DatabaseTable(tableName="test") */ class Test extends AbstractEntity { /** * A basic field * * @var string * @DatabaseField(type="string") */ protected $textField; /** * A boolean field * * @var bool * @DatabaseField(type="bool") */ protected $boolField; /** * File example * * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference * @DatabaseField(type="string") */ protected $file; /** * Custom (variable that has a custom DB type) * * @var int * @DatabaseField(type="int", sql="int(11) DEFAULT '0' NOT NULL") */ protected $customField; // add here some Getters and Setters }