Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatel-mm committed Oct 19, 2023
1 parent 370f086 commit 960ca26
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Name: silverstripe-colourpicker

SilverStripe\Core\Injector\Injector:
Colour:
class: MadeHQ\FieldType\DBColour
class: MadeHQ\ColourPicker\FieldType\DBColour

SilverStripe\Admin\LeftAndMain:
extra_requirements_javascript:
Expand Down
4 changes: 2 additions & 2 deletions code/FieldType/DBColour.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MadeHQ\FieldType;
namespace MadeHQ\ColourPicker\FieldType;

use SilverStripe\ORM\FieldType\DBVarchar;
use MadeHQ\Forms\ColourPicker;
use MadeHQ\ColourPicker\Forms\ColourPicker;

class DBColour extends DBVarchar
{
Expand Down
4 changes: 2 additions & 2 deletions code/Forms/ColourPicker.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MadeHQ\FieldType;
namespace MadeHQ\ColourPicker\FieldType;

use SilverStripe\ORM\FieldType\DBVarchar;
use MadeHQ\Forms\ColourPicker;
use MadeHQ\ColourPicker\Forms\ColourPicker;

class DBColour extends DBVarchar
{
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@
"require": {
"silverstripe/admin": "^1.10"
},
"autoload": {
"psr-4": {"MadeHQ\\": "code/"}
"autoload": {
"psr-4": {
"MadeHQ\\ColourPicker\\": "code/"
}
},
"extra": {
"expose": [
"client/dist"
]
},
"config": {
"discard-changes": true
},
"prefer-stable": true,
"minimum-stability": "dev"
}

0 comments on commit 960ca26

Please sign in to comment.