Skip to content

Commit ac863e7

Browse files
committed
Rename classes to more possible unique names
1 parent f0b505f commit ac863e7

15 files changed

+32
-30
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Update the `require` section of your application's **composer.json** file:
1212
```js
1313
"require": {
1414
...
15-
"sahib/application-insights-laravel": "1.0.1",
15+
"larasahib/application-insights-laravel": "1.0.2",
1616
...
1717
}
1818
```
@@ -74,7 +74,7 @@ To report exceptions that occur in your application, use the provided exception
7474
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
7575

7676
# Insert this line
77-
use Sahib\AppInsightsLaravel\Handlers\AppInsightsExceptionHandler as ExceptionHandler;
77+
use Larasahib\AppInsightsLaravel\Handlers\AppInsightsExceptionHandler as ExceptionHandler;
7878

7979
...
8080
```
@@ -110,4 +110,6 @@ See the [ApplicationInsights-PHP](https://github.com/Microsoft/ApplicationInsigh
110110
### dev-master
111111
- Initial commit.
112112
### 1.0.1
113-
- Stable release
113+
- Stable release
114+
### 1.0.2
115+
- Renaming classes to more nuique names

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"monitoring",
1212
"logging"
1313
],
14-
"minimum-stability": "dev",
14+
"minimum-stability": "1.0.0",
1515
"authors": [
1616
{
1717
"name": "Sahib",
@@ -24,18 +24,18 @@
2424
},
2525
"autoload": {
2626
"psr-4": {
27-
"Sahib\\AppInsightsLaravel\\": "src/"
27+
"Larasahib\\AppInsightsLaravel\\": "src/"
2828
}
2929
},
3030
"extra": {
3131
"laravel": {
3232
"providers": [
33-
"Sahib\\AppInsightsLaravel\\Providers\\AppInsightsServiceProvider"
33+
"Larasahib\\AppInsightsLaravel\\Providers\\AppInsightsServiceProvider"
3434
],
3535
"aliases": {
36-
"AIClient": "Sahib\\AppInsightsLaravel\\Facades\\AppInsightsClientFacade",
37-
"AIServer": "Sahib\\AppInsightsLaravel\\Facades\\AppInsightsServerFacade",
38-
"AIQueue": "Sahib\\AppInsightsLaravel\\Facades\\AppInsightsQueueFacade"
36+
"AIClient": "Larasahib\\AppInsightsLaravel\\Facades\\AppInsightsClientFacade",
37+
"AIServer": "Larasahib\\AppInsightsLaravel\\Facades\\AppInsightsServerFacade",
38+
"AIQueue": "Larasahib\\AppInsightsLaravel\\Facades\\AppInsightsQueueFacade"
3939
}
4040
}
4141
}

src/AppInsightsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Sahib\AppInsightsLaravel;
1+
<?php namespace Larasahib\AppInsightsLaravel;
22

33
class AppInsightsClient extends InstrumentationKey
44
{

src/AppInsightsHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel;
2+
namespace Larasahib\AppInsightsLaravel;
33

44
use Throwable;
55
use GuzzleHttp\Exception\RequestException;

src/AppInsightsServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel;
2+
namespace Larasahib\AppInsightsLaravel;
33

44
use ApplicationInsights\Telemetry_Client;
55

src/Exceptions/AppInsightsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel\Exceptions;
2+
namespace Larasahib\AppInsightsLaravel\Exceptions;
33

44
class AppInsightsException extends \Exception
55
{

src/Exceptions/InvalidInstrumentationKeyException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel\Exceptions;
2+
namespace Larasahib\AppInsightsLaravel\Exceptions;
33

44
class InvalidInstrumentationKeyException extends AppInsightsException
55
{

src/Facades/AppInsightsClientFacade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Sahib\AppInsightsLaravel\Facades;
1+
<?php namespace Larasahib\AppInsightsLaravel\Facades;
22

33
use Illuminate\Support\Facades\Facade;
44

src/Facades/AppInsightsQueueFacade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Sahib\AppInsightsLaravel\Facades;
1+
<?php namespace Larasahib\AppInsightsLaravel\Facades;
22

33
use Illuminate\Support\Facades\Facade;
44

@@ -11,6 +11,6 @@ class AppInsightsQueueFacade extends Facade
1111
*/
1212
protected static function getFacadeAccessor()
1313
{
14-
return \Sahib\AppInsightsLaravel\Queue\AppInsightsTelemeteryQueue::class;
14+
return \Larasahib\AppInsightsLaravel\Queue\AppInsightsTelemeteryQueue::class;
1515
}
1616
}

src/Facades/AppInsightsServerFacade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Sahib\AppInsightsLaravel\Facades;
3+
namespace Larasahib\AppInsightsLaravel\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

src/Handlers/AppInsightsExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel\Handlers;
2+
namespace Larasahib\AppInsightsLaravel\Handlers;
33

44
use Throwable;
55
use Illuminate\Contracts\Container\Container;

src/InstrumentationKey.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel;
2+
namespace Larasahib\AppInsightsLaravel;
33

4-
use Sahib\AppInsightsLaravel\Exceptions\InvalidInstrumentationKeyException;
4+
use Larasahib\AppInsightsLaravel\Exceptions\InvalidInstrumentationKeyException;
55

66
class InstrumentationKey
77
{

src/Middleware/AppInsightsMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel\Middleware;
2+
namespace Larasahib\AppInsightsLaravel\Middleware;
33

44
use Closure;
5-
use Sahib\AppInsightsLaravel\AppInsightsHelpers;
5+
use Larasahib\AppInsightsLaravel\AppInsightsHelpers;
66

77
class AppInsightsMiddleware
88
{

src/Providers/AppInsightsServiceProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Sahib\AppInsightsLaravel\Providers;
3+
namespace Larasahib\AppInsightsLaravel\Providers;
44

55
use ApplicationInsights\Telemetry_Client;
66
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
7-
use Sahib\AppInsightsLaravel\Queue\AppInsightsTelemeteryQueue;
8-
use Sahib\AppInsightsLaravel\Middleware\AppInsightsMiddleware;
9-
use Sahib\AppInsightsLaravel\AppInsightsClient;
10-
use Sahib\AppInsightsLaravel\AppInsightsHelpers;
11-
use Sahib\AppInsightsLaravel\AppInsightsServer;
7+
use Larasahib\AppInsightsLaravel\Queue\AppInsightsTelemeteryQueue;
8+
use Larasahib\AppInsightsLaravel\Middleware\AppInsightsMiddleware;
9+
use Larasahib\AppInsightsLaravel\AppInsightsClient;
10+
use Larasahib\AppInsightsLaravel\AppInsightsHelpers;
11+
use Larasahib\AppInsightsLaravel\AppInsightsServer;
1212

1313
class AppInsightsServiceProvider extends LaravelServiceProvider {
1414

src/Queue/AppInsightsTelemeteryQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Sahib\AppInsightsLaravel\Queue;
2+
namespace Larasahib\AppInsightsLaravel\Queue;
33

44
use Illuminate\Bus\Queueable;
55
use Illuminate\Contracts\Queue\ShouldQueue;

0 commit comments

Comments
 (0)