www.gusucode.com > Flarum中文优化论坛PHP源码程序 > FlarumChina-master/vendor/illuminate/contracts/Container/ContextualBindingBuilder.php

    <?php

namespace Illuminate\Contracts\Container;

interface ContextualBindingBuilder
{
    /**
     * Define the abstract target that depends on the context.
     *
     * @param  string  $abstract
     * @return $this
     */
    public function needs($abstract);

    /**
     * Define the implementation for the contextual binding.
     *
     * @param  \Closure|string  $implementation
     * @return void
     */
    public function give($implementation);
}