Skip to content

Commit

Permalink
API Reorganise file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 27, 2024
1 parent e6c2678 commit 9d20a91
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For instance, in order to add a new Page field to the report you could add an ex

```php
use SilverStripe\Core\Extension;
use SilverStripe\Reports\SiteWideContentReport\SiteWideContentReport;
use SilverStripe\Reports\SiteWideContentReport\Reports\SiteWideContentReport;
class MyReportExtension extends Extension {
protected function updateColumns($itemType, &$columns) {
Expand Down Expand Up @@ -112,7 +112,7 @@ Apply the example Extension above with YAML configuration in your project:
---
Name: queuedsitewidecontentreport
---
SilverStripe\Reports\SitewideContentReport\SitewideContentReport:
SilverStripe\Reports\SitewideContentReport\Reports\SitewideContentReport:
extensions:
- SitewideContentReportQueuedExportExtension
```
Expand Down
2 changes: 1 addition & 1 deletion _config/securityreport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Name: reports-securityreportconfig
---
SilverStripe\Security\Member:
extensions:
- SilverStripe\Reports\SecurityReport\MemberReportExtension
- SilverStripe\Reports\SecurityReport\Extensions\MemberReportExtension
2 changes: 1 addition & 1 deletion _config/sitewidecontent-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Name: reports-sitewidecontenttaxonomy
Only:
moduleexists: silverstripe/taxonomy
---
SilverStripe\Reports\SiteWideContentReport\SitewideContentReport:
SilverStripe\Reports\SitewideContentReport\Reports\SitewideContentReport:
extensions:
- SilverStripe\Reports\SiteWideContentReport\Model\SitewideContentTaxonomy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SilverStripe\Reports\SecurityReport;
namespace SilverStripe\Reports\SecurityReport\Extensions;

use SilverStripe\Core\Extension;
use SilverStripe\ORM\FieldType\DBDatetime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SilverStripe\Reports\SecurityReport;
namespace SilverStripe\Reports\SecurityReport\Reports;

use SilverStripe\Control\Director;
use SilverStripe\Forms\FormField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Extension;
use SilverStripe\Reports\SiteWideContentReport\SitewideContentReport;
use SilverStripe\Reports\SitewideContentReport\Reports\SitewideContentReport;
use SilverStripe\Taxonomy\TaxonomyTerm;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SilverStripe\Reports\SiteWideContentReport;
namespace SilverStripe\Reports\SiteWideContentReport\Reports;

use Page;
use SilverStripe\AssetAdmin\Controller\AssetAdmin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace SilverStripe\Reports\Tests\SecurityReport;
namespace SilverStripe\Reports\Tests\SecurityReport\Extensions;

use SilverStripe\Dev\SapphireTest;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\Security\Member;
use SilverStripe\Reports\SecurityReport\MemberReportExtension;
use SilverStripe\Reports\SecurityReport\Extensions\MemberReportExtension;

class MemberReportExtensionTest extends SapphireTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace SilverStripe\Reports\Tests\SecurityReport;
namespace SilverStripe\Reports\Tests\SecurityReport\Reports;

use SilverStripe\Core\Config\Config;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\Security\Group;
use SilverStripe\Security\Member;
use SilverStripe\Security\Security;
use SilverStripe\Reports\SecurityReport\MemberReportExtension;
use SilverStripe\Reports\SecurityReport\Extensions\MemberReportExtension;
use SilverStripe\Reports\Report;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Reports\SecurityReport\UserSecurityReport;
use SilverStripe\Reports\SecurityReport\Reports\UserSecurityReport;

/**
* User Security Report Tests.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace SilverStripe\Reports\Tests\SiteWideContentReport;
namespace SilverStripe\Reports\Tests\SiteWideContentReport\Reports;

use Page;
use SilverStripe\CMS\Model\SiteTree;
Expand All @@ -12,7 +12,7 @@
use SilverStripe\Forms\GridField\GridFieldExportButton;
use SilverStripe\ORM\DataList;
use SilverStripe\Reports\SiteWideContentReport\Model\SitewideContentTaxonomy;
use SilverStripe\Reports\SiteWideContentReport\SitewideContentReport;
use SilverStripe\Reports\SitewideContentReport\Reports\SitewideContentReport;

class SitewideContentReportTest extends SapphireTest
{
Expand Down

0 comments on commit 9d20a91

Please sign in to comment.