Skip to content

Commit 53b1bea

Browse files
committed
Remove support for xPDO 2 and introduce support for xPDO 3
1 parent ed4c4df commit 53b1bea

32 files changed

+1171
-317
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Here is an example showing how to populate 5 `modUser` and 10 `modResource` obje
2424
<?php
2525
$generator = \Faker\Factory::create();
2626
$populator = new \SpringbokAgency\Faker\ORM\xPDO\Populator($generator, $xpdo);
27-
$populator->addEntity(\modUser::class, 5);
28-
$populator->addEntity(\modResource::class, 10);
27+
$populator->addEntity(\MODX\Revolution\modUser::class, 5);
28+
$populator->addEntity(\MODX\Revolution\modResource::class, 10);
2929
$insertedPKs = $populator->execute();
3030
```
3131

composer.json

+2-20
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,11 @@
1414
"email": "[email protected]"
1515
}
1616
],
17-
"repositories": [
18-
{
19-
"type": "package",
20-
"package": {
21-
"name": "modxcms/xpdo2",
22-
"version": "v2.8.4-pl",
23-
"source": {
24-
"url": "[email protected]:modxcms/xpdo.git",
25-
"type": "git",
26-
"reference": "origin/2.x"
27-
}
28-
}
29-
}
30-
],
3117
"require": {
3218
"fakerphp/faker": "^1.20"
3319
},
3420
"require-dev": {
35-
"modxcms/xpdo2": "^2.8.4",
21+
"xpdo/xpdo": "^3.1",
3622
"phpunit/phpunit": "^7"
3723
},
3824
"autoload": {
@@ -43,11 +29,7 @@
4329
"autoload-dev": {
4430
"psr-4": {
4531
"SpringbokAgency\\Tests\\": "tests/"
46-
},
47-
"classmap": [
48-
"vendor/modxcms/xpdo2/xpdo/",
49-
"tests/test_package/core/components/faker-xpdo-orm-adapter/model/faker-xpdo-orm-adapter/"
50-
]
32+
}
5133
},
5234
"support": {
5335
"issues": "https://github.com/SpringbokAgency/faker-xpdo-orm-adapter/issues",

0 commit comments

Comments
 (0)