New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added service provider interface #12783

merged 4 commits into from Apr 11, 2017


None yet
1 participant

sergeyklay commented Apr 11, 2017

  • Type: new feature
  • Link to issue: #12543
namespace Acme;

use Phalcon\DiInterface;
use Phalcon\Breadcrumbs;
use Phalcon\Di\ServiceProviderInterface;

class SomeServiceProvider implements ServiceProviderInterface
    public function register(DiInterface $di)
        $di->setShared('breadcrumbs', function () {
            $breadcrumbs = new Breadcrumbs();

           return $breadcrumbs;

sergeyklay added some commits Apr 11, 2017

@sergeyklay sergeyklay merged commit 80b32ce into phalcon:3.2.x Apr 11, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@sergeyklay sergeyklay deleted the sergeyklay:feature/service-provider branch Apr 11, 2017

SidRoberts added a commit to SidRoberts/cphalcon that referenced this pull request May 5, 2017

sergeyklay added a commit that referenced this pull request Jun 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment