-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinit.php
More file actions
23 lines (17 loc) · 684 Bytes
/
init.php
File metadata and controls
23 lines (17 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
use Carbon_Fields\Carbon_Fields;
use iamntz\carbonfields\chainedSelect\ChainedSelect_Field;
define('CARBON_CHAINED_SELECT_DIR', __DIR__);
define('CARBON_CHAINED_SELECT_VERSION', '3.0.4');
Carbon_Fields::extend(ChainedSelect_Field::class, function ($container) {
return new ChainedSelect_Field(
$container['arguments']['type'],
$container['arguments']['name'],
$container['arguments']['label']
);
});
/*
* Backwards compatibility
*/
class_alias('iamntz\carbonfields\chainedSelect\ChainedSelect_Field', 'iamntz\carbon\chainedSelect\ChainedSelect_Field');
class_alias('iamntz\carbonfields\chainedSelect\OptionsParser', 'iamntz\carbon\chainedSelect\OptionsParser');