Skip to content

Commit

Permalink
Bugfix: Fixed mistaken namespace (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbrauer authored Mar 24, 2024
1 parent 6229e98 commit 59311ec
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ With auto geocoding enabled in the CMS, the map will display the nearest 26 loca
See the [docs/en](docs/en/index.md) folder.

## Maintainers
* [Dynamic](http://www.dynamicagency.com) (<[email protected]>)
* [Dynamic](https://www.dynamicagency.com) (<[email protected]>)

## Bugtracker
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over
Expand Down
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
Name: locator
---
Dynamic\Locator\Location:
Dynamic\Locator\Model\Location:
extensions:
- Dynamic\SilverStripeGeocoder\DistanceDataExtension
- Dynamic\SilverStripeGeocoder\AddressDataExtension
Expand Down
2 changes: 1 addition & 1 deletion _config/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ name: locatorlegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
Dynamic\Locator\Location: Dynamic\Locator\Location
Dynamic\Locator\Location: Dynamic\Locator\Model\Location
Dynamic\Locator\Locator: Dynamic\Locator\Page\Locator
Dynamic\Locator\LocationCategory: Dynamic\Locator\Model\LocationCategory
2 changes: 1 addition & 1 deletion src/Model/Location.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Dynamic\Locator;
namespace Dynamic\Locator\Model;

use Dynamic\Locator\Model\LocationCategory;
use SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/LocationCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Model;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Page\Locator;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\GridField\GridField;
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks/EmailAddressTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tasks;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\BuildTask;
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks/LocationToPageTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tasks;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Page\LocationPage;
use Dynamic\Locator\Page\Locator;
use SilverStripe\Core\Injector\Injector;
Expand Down
2 changes: 1 addition & 1 deletion src/bulkloader/LocationCsvBulkLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Bulkloader;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Model\LocationCategory;
use SilverStripe\Dev\CsvBulkLoader;
use SilverStripe\Core\Convert;
Expand Down
4 changes: 2 additions & 2 deletions tests/Model/LocationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Dynamic\Locator\Tests\TestOnlyModel\ExtendedLocation;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\SapphireTest;
use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use SilverStripe\Forms\FieldList;
use SilverStripe\Security\Member;

Expand Down Expand Up @@ -215,7 +215,7 @@ public function testUpdateWebsiteURL()
$clone = Injector::inst()->create(ExtendedLocation::class, $map);
$clone->ID = 0;

$this->assertEquals('http://www.dynamicagency.com', $location->getWebsiteURL());
$this->assertEquals('https://www.dynamicagency.com', $location->getWebsiteURL());
$this->assertEquals('foo', $clone->getWebsiteURL());
}
}
8 changes: 4 additions & 4 deletions tests/Model/locationfixture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Dynamic\Locator\Page\Locator:
Title: Locator
Categories: =>Dynamic\Locator\Model\LocationCategory.service,=>Dynamic\Locator\Model\LocationCategory.technology

Dynamic\Locator\Location:
Dynamic\Locator\Model\Location:
dynamic:
Title: Dynamic, Inc.
Featured: true
Website: "http://www.dynamicagency.com"
Website: "https://www.dynamicagency.com"
Phone: 920-459-8889
Email: [email protected]
Address: 1526 S. 12th St
Expand All @@ -72,14 +72,14 @@ Dynamic\Locator\Location:
silverstripe:
Title: Silverstripe
Featured: true
Website: http://silverstripe.org
Website: https://silverstripe.org
Phone: 555-555-5555
Email: [email protected]
Categories: =>Dynamic\Locator\Model\LocationCategory.service
3sheeps:
Title: 3 Sheeps Brewing
Featured: false
Website: http://www.3sheepsbrewing.com
Website: https://www.3sheepsbrewing.com
Phone: 555-555-5556
ShowInLocator: false
Address: 1327 Huron Ave
Expand Down
2 changes: 1 addition & 1 deletion tests/Page/LocatorControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tests\Page;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Model\LocationCategory;
use Dynamic\Locator\Page\Locator;
use Dynamic\Locator\Page\LocatorController;
Expand Down
2 changes: 1 addition & 1 deletion tests/Page/LocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tests\Page;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Page\Locator;
use Dynamic\Locator\Page\LocatorController;
use SilverStripe\Core\Config\Config;
Expand Down
8 changes: 4 additions & 4 deletions tests/Page/locatorfixture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Dynamic\Locator\Page\Locator:
Title: Locator
Categories: =>Dynamic\Locator\Model\LocationCategory.service,=>Dynamic\Locator\Model\LocationCategory.technology

Dynamic\Locator\Location:
Dynamic\Locator\Model\Location:
dynamic:
Title: Dynamic, Inc.
Featured: true
Website: "http://www.dynamicagency.com"
Website: "https://www.dynamicagency.com"
Phone: 920-459-8889
Email: [email protected]
Address: 1526 S. 12th St
Expand All @@ -29,14 +29,14 @@ Dynamic\Locator\Location:
silverstripe:
Title: Silverstripe
Featured: true
Website: http://silverstripe.org
Website: https://silverstripe.org
Phone: 555-555-5555
Email: [email protected]
Categories: =>Dynamic\Locator\Model\LocationCategory.service
3sheeps:
Title: 3 Sheeps Brewing
Featured: false
Website: http://www.3sheepsbrewing.com
Website: https://www.3sheepsbrewing.com
Phone: 555-555-5556
ShowInLocator: false
Address: 1327 Huron Ave
Expand Down
2 changes: 1 addition & 1 deletion tests/TestOnly/Model/ExtendedLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tests\TestOnlyModel;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Tests\TestOnly\Extension\LocationExtension;
use SilverStripe\Dev\TestOnly;

Expand Down
14 changes: 7 additions & 7 deletions tests/fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Dynamic\Locator\Page\Locator:
Title: Locator
Categories: =>Dynamic\Locator\Model\LocationCategory.service,=>Dynamic\Locator\Model\LocationCategory.technology

Dynamic\Locator\Location:
Dynamic\Locator\Model\Location:
dynamic:
Title: Dynamic, Inc.
Featured: true
Website: "http://www.dynamicagency.com"
Website: "https://www.dynamicagency.com"
Phone: 920-459-8889
Email: [email protected]
Address: 1526 S. 12th St
Expand All @@ -72,14 +72,14 @@ Dynamic\Locator\Location:
silverstripe:
Title: Silverstripe
Featured: true
Website: http://silverstripe.org
Website: https://silverstripe.org
Phone: 555-555-5555
Email: [email protected]
Categories: =>Dynamic\Locator\Model\LocationCategory.service
3sheeps:
Title: 3 Sheeps Brewing
Featured: false
Website: http://www.3sheepsbrewing.com
Website: https://www.3sheepsbrewing.com
Phone: 555-555-5556
ShowInLocator: false
Address: 1327 Huron Ave
Expand All @@ -103,7 +103,7 @@ Dynamic\Locator\Model\Page\LocationPage:
dynamic:
Title: Dynamic, Inc.
Featured: true
Website: "http://www.dynamicagency.com"
Website: "https://www.dynamicagency.com"
Phone: 920-459-8889
Email: [email protected]
Address: 1526 S. 12th St
Expand All @@ -116,15 +116,15 @@ Dynamic\Locator\Model\Page\LocationPage:
silverstripe:
Title: Silverstripe
Featured: true
Website: http://silverstripe.org
Website: https://silverstripe.org
Phone: 555-555-5555
Email: [email protected]
Categories: =>Dynamic\Locator\Model\LocationCategory.service
Parent: =>Dynamic\Locator\Page\Locator.locator1
3sheeps:
Title: 3 Sheeps Brewing
Featured: false
Website: http://www.3sheepsbrewing.com
Website: https://www.3sheepsbrewing.com
Phone: 555-555-5556
ShowInLocator: false
Address: 1327 Huron Ave
Expand Down
2 changes: 1 addition & 1 deletion tests/form/LocatorFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dynamic\Locator\Tests\Form;

use Dynamic\Locator\Location;
use Dynamic\Locator\Model\Location;
use Dynamic\Locator\Page\Locator;
use Dynamic\Locator\Page\LocatorController;
use Dynamic\Locator\Form\LocatorForm;
Expand Down
8 changes: 4 additions & 4 deletions tests/form/locatorformfixture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Dynamic\Locator\Page\Locator:
Title: Locator
Categories: =>Dynamic\Locator\Model\LocationCategory.service,=>Dynamic\Locator\Model\LocationCategory.technology

Dynamic\Locator\Location:
Dynamic\Locator\Model\Location:
dynamic:
Title: Dynamic, Inc.
Featured: true
Website: "http://www.dynamicagency.com"
Website: "https://www.dynamicagency.com"
Phone: 920-459-8889
Email: [email protected]
Address: 1526 S. 12th St
Expand All @@ -29,14 +29,14 @@ Dynamic\Locator\Location:
silverstripe:
Title: Silverstripe
Featured: true
Website: http://silverstripe.org
Website: https://silverstripe.org
Phone: 555-555-5555
Email: [email protected]
Categories: =>Dynamic\Locator\Model\LocationCategory.service
3sheeps:
Title: 3 Sheeps Brewing
Featured: false
Website: http://www.3sheepsbrewing.com
Website: https://www.3sheepsbrewing.com
Phone: 555-555-5556
ShowInLocator: false
Address: 1327 Huron Ave
Expand Down

0 comments on commit 59311ec

Please sign in to comment.