Questions tagged [service-provider]
380 questions
6
votes
1 answer
Is it bad practice to inject several arguments to the constructor?
I'm developing a quite complex logistics management system which will keep growing into several other ERP related modules. Therefore, I am trying to have as much of the SRP and Open/Close Principles in place for ease of extension and domain based…

Keith Mifsud
- 1,599
- 1
- 16
- 26
6
votes
1 answer
SP metadata: certificate for signing and encryption
The specification says that:
Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0
2.4.1.1 Element
The element provides information about the cryptographic key(s) that
an entity uses to sign…
user1134181
5
votes
1 answer
How to add multiple route file using RouteServiceProvider in laravel
I want to create module wise route file and load all route files using RouteServiceProvider mapApiRoutes(). I have created category.php file and admin.php file which contains routes within it. Now i want to load this two file's routes in api.php…

Yogendrasinh
- 151
- 1
- 5
5
votes
1 answer
In an multi-tenant enviroment how can I provide different metadata for different Service Providers at runtime on different urls (subdomains)?
Working on SP initiated Single Sign On (SSO) with both SP and IdP are self-hosted thus have flexibility of editing both. I am using spring-security-saml2-core-1.0.1.RELEASE for hosting spring application (spring-security-3.2.8,…

shagun akarsh
- 159
- 2
- 14
5
votes
2 answers
Simple Java "Service Provider frameworks"?
I refer to "service provider framework" as discussed in Chapter 2 of Effective Java, which seems like exactly the right way to handle a problem I am having, where I need to instantiate one of several classes at runtime, based on a String to select…

Jason S
- 184,598
- 164
- 608
- 970
4
votes
1 answer
Using Laravel and including a package, why would I get Call to undefined method
I am running laravel 5+ and included a package in my composer. It installed fine.
The package is simple, it allows me to add small bits of pseudo code into a given view and it renders a preset thing.
In my AppServiceProvider register() I am…

TJ Sherrill
- 2,465
- 7
- 50
- 88
4
votes
1 answer
In Laravel, how to depedency inject service into controller method
Sorry for newbie question, but I cant find any example on how to actually use Service Providers (Laravel documentation shows only how to create them).
Since Laravel's paginator doesn't work with grouping, I want to create my own paginator service,…
user8069675
4
votes
1 answer
How to Fool the Java Service Provider API (jaxp)
I have an applet that needs to call JAXP, specifically SAXParserFactory. Now, as you can see from the Javadoc, this internally uses the Service Provider mechanism as documented here:
Specifically, if it does not find a file in any of my application…

Dan
- 10,990
- 7
- 51
- 80
4
votes
2 answers
How to extend a Laravel vendor package
I am trying to extend Kryptonit3/Counter. Particularly, I need to overwrite one private function inside the class Counter.php to retrieve only hits for the last 24 hours.
Counter.php private function:
private static function countHits($page)
{
…

Diego Vidal
- 1,022
- 12
- 21
4
votes
1 answer
Testing Laravel Service Providers
I'm (we're) creating a package that acts as a core component for our future CMS and of course that package needs some unit tests.
When the package registeres, the first thing it does is set the back/frontend context like this:
class…

frietkot
- 891
- 12
- 28
4
votes
1 answer
Add custom package to composer.json file
I have a custom package that is not uploaded on github or packagist and I need to add it to a Laravel 5.1 project.
This is my package folder structure:
Packages
\_ christian
\_ smsservice
\_src
\_ Facades
\_…

Christian Giupponi
- 7,408
- 11
- 68
- 113
4
votes
1 answer
How does Laravel defer multiple bindings all listed in a single service provider?
I want all my repositories to be listed in a single service provider, but I don't want them all loaded at once...
Consider the service provider below:
class RepositoryServiceProvider extends ServiceProvider {
protected $defer = true;
…

prograhammer
- 20,132
- 13
- 91
- 118
4
votes
1 answer
What entityId to choose to configure Service Provider (SP) in shibboleth?
According to Shibboleth wiki entity naming we should not use real host to the entity id, I am confused what to use. Is there any significance of entity id, or I can choose whatever?
What if I edit it after configured.
my web path that will required…

Akshay
- 3,558
- 4
- 43
- 77
4
votes
1 answer
Issue with Facade and Service Provider in Laravel-4
I am trying to set up a Facade for a custom built class in laravel-4. However, when I try to load my website I get an error which reads
Class 'PlaneSaleing\ResizerServiceProvider' not found
I have followed the tutorial here:…

Ben Thompson
- 4,743
- 7
- 35
- 52
4
votes
1 answer
iOS: Find Service Provider of the Mobile from within the App
I have a recent requirement to find the Service Provider of the Mobile from within the iOS App. I am not very sure if this is possible.
Can someone please help me with this.
Also, if possible, please do let me know if it will clear AppStore…
user1280350