Skip to content

Commit b01c1f4

Browse files
committed
Rename namespace
1 parent 3d8cb1d commit b01c1f4

14 files changed

Lines changed: 30 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.1.0] - 10 July 2025
10+
### Refactor
11+
- Rename `Yireo_LokiComponentsDebugger` to `Loki_Debugger`
12+
913
## [0.0.7] - 13 May 2025
1014
### Fixed
1115
- Update MODULE.json

Component/Debugger/DebuggerContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Yireo\LokiComponentsDebugger\Component\Debugger;
4+
namespace Loki\Debugger\Component\Debugger;
55

66
use Magento\Framework\App\ObjectManager;
77
use Yireo\LokiComponents\Component\ComponentContext;
8-
use Yireo\LokiComponentsDebugger\Util\Debugger;
8+
use Loki\Debugger\Util\Debugger;
99

1010
class DebuggerContext extends ComponentContext
1111
{

Component/Debugger/DebuggerViewModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types=1);
22

3-
namespace Yireo\LokiComponentsDebugger\Component\Debugger;
3+
namespace Loki\Debugger\Component\Debugger;
44

55
use Yireo\LokiComponents\Component\ComponentViewModel;
66

Observer/DebugBlocks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php declare(strict_types=1);
22

3-
namespace Yireo\LokiComponentsDebugger\Observer;
3+
namespace Loki\Debugger\Observer;
44

55
use Magento\Framework\Event\Observer;
66
use Magento\Framework\Event\ObserverInterface;
7-
use Yireo\LokiComponentsDebugger\Util\Debugger;
7+
use Loki\Debugger\Util\Debugger;
88

99
class DebugBlocks implements ObserverInterface
1010
{

Observer/DebugRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php declare(strict_types=1);
22

3-
namespace Yireo\LokiComponentsDebugger\Observer;
3+
namespace Loki\Debugger\Observer;
44

55
use Magento\Framework\Event\Observer;
66
use Magento\Framework\Event\ObserverInterface;
77
use Yireo\LokiComponents\Component\ComponentInterface;
8-
use Yireo\LokiComponentsDebugger\Util\Debugger;
8+
use Loki\Debugger\Util\Debugger;
99

1010
class DebugRepository implements ObserverInterface
1111
{

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Yireo_LokiComponentsDebugger
1+
# `Loki_Debugger`
22

33
**This is an add-on package for adding a debugger toolbar to the `Yireo_LokiComponents` module.**
44

55
## Installation
66
Install this package via composer (assuming you have setup the `composer.yireo.com` repository correctly already):
77
```bash
8-
composer require yireo/magento2-loki-components-debugger
8+
composer require loki/magento2-debugger
99
```
1010

1111
Next, enable this module:
1212
```bash
13-
bin/magento module:enable Yireo_LokiComponentsDebugger
13+
bin/magento module:enable Loki_Debugger
1414
```
1515

Util/Debugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types=1);
22

3-
namespace Yireo\LokiComponentsDebugger\Util;
3+
namespace Loki\Debugger\Util;
44

55
class Debugger
66
{

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "yireo/magento2-loki-components-debugger",
3-
"version": "0.0.7",
2+
"name": "loki/magento2-debugger",
3+
"version": "0.1.0",
44
"description": "N/A",
55
"keywords": ["dev", "loki-dev"],
66
"type": "magento2-module",
@@ -14,7 +14,7 @@
1414
"registration.php"
1515
],
1616
"psr-4": {
17-
"Yireo\\LokiComponentsDebugger\\": ""
17+
"Loki\\Debugger\\": ""
1818
}
1919
}
2020
}

etc/frontend/events.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
33
<event name="loki_components_repository_dispatch">
44
<observer
5-
name="Yireo_LokiComponentsDebugger::debugRepository"
6-
instance="Yireo\LokiComponentsDebugger\Observer\DebugRepository"/>
5+
name="Loki_Debugger::debugRepository"
6+
instance="Loki\Debugger\Observer\DebugRepository"/>
77
</event>
88

99
<event name="loki_components_blocks">
1010
<observer
11-
name="Yireo_LokiComponentsDebugger::debugBlocks"
12-
instance="Yireo\LokiComponentsDebugger\Observer\DebugBlocks"/>
11+
name="Loki_Debugger::debugBlocks"
12+
instance="Loki\Debugger\Observer\DebugBlocks"/>
1313
</event>
1414
</config>

etc/loki_components.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<components xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Yireo_LokiComponents:etc/loki_components.xsd">
33
<component
44
name="loki-components.debugger"
5-
context="Yireo\LokiComponentsDebugger\Component\Debugger\DebuggerContext"
6-
viewModel="Yireo\LokiComponentsDebugger\Component\Debugger\DebuggerViewModel"/>
5+
context="Loki\Debugger\Component\Debugger\DebuggerContext"
6+
viewModel="Loki\Debugger\Component\Debugger\DebuggerViewModel"/>
77
</components>

0 commit comments

Comments
 (0)