Skip to content

Commit 91934b2

Browse files
committed
Fixing presenter overload in base model. Setting as version 1
1 parent 4263167 commit 91934b2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "syntax/core",
3+
"version": "1.0.0",
34
"description": "A core set of features for laravel sites.",
45
"license": "MIT",
56
"authors": [
@@ -36,9 +37,4 @@
3637
"Syntax\\Core\\": "src/"
3738
}
3839
},
39-
"extra": {
40-
"branch-alias": {
41-
"dev-master": "1.0.x-dev"
42-
}
43-
}
4440
}

src/models/Core_BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Core_BaseModel extends Ardent {
1616
*/
1717
public function __construct()
1818
{
19-
$class = get_called_class() .'Presenter';
19+
$class = str_replace('Syntax\Core\\', '', get_called_class()) .'Presenter';
2020
$coreClass = 'Syntax\Core\\'. $class;
2121

2222
if (class_exists($class)) {

0 commit comments

Comments
 (0)