Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
3886f7e1
Commit
3886f7e1
authored
Jul 28, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - aliased and set chart data manager class to be easily accessible outside
parent
501e01f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CoreServiceProvider.php
src/Providers/CoreServiceProvider.php
+10
-0
Index.blade.php
src/Views/Limitless/Linechart/Documentation/Index.blade.php
+2
-2
No files found.
src/Providers/CoreServiceProvider.php
View file @
3886f7e1
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
*/
*/
use
Ceetrox\Providers\CommandServiceProvider\CommandServiceProvider
;
use
Ceetrox\Providers\CommandServiceProvider\CommandServiceProvider
;
use
Ceetrox\Providers\PicassoServiceProvider\PicassoServiceProvider
;
use
Ceetrox\Providers\PicassoServiceProvider\PicassoServiceProvider
;
use
Ceetrox\Sidekick\Views\Limitless\Linechart\ChartManager\ChartDataManager
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Foundation\AliasLoader
;
/*
/*
...
@@ -53,6 +55,14 @@
...
@@ -53,6 +55,14 @@
*/
*/
app
()
->
register
(
new
PicassoServiceProvider
(
app
()
)
);
app
()
->
register
(
new
PicassoServiceProvider
(
app
()
)
);
/*
|----------------------------------------------------------------------------------------
| Set the alias of the chart data manager class.
*/
$this
->
app
->
booting
(
function
()
{
$loader
=
AliasLoader
::
getInstance
();
$loader
->
alias
(
'SidekickChartDataManager'
,
ChartDataManager
::
class
);
});
}
}
}
}
...
...
src/Views/Limitless/Linechart/Documentation/Index.blade.php
View file @
3886f7e1
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
@
php
@
php
$chartDataManager
=
\Ceetrox\Sidekick\Views\Limitless\Linechart\ChartManager\
ChartDataManager
::
getInstance
();
$chartDataManager
=
Sidekick
ChartDataManager
::
getInstance
();
// or $chartDataManager = new
\Ceetrox\Sidekick\Views\Limitless\Linechart\ChartManager\
ChartDataManager();
// or $chartDataManager = new
Sidekick
ChartDataManager();
// accepts string or array.
// accepts string or array.
$chartDataManager
->
addCategories
(
'Mon'
);
$chartDataManager
->
addCategories
(
'Mon'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment