Inherit data from an {@link UserInfoInterface}.

Copies the user image to an application attachment.
@param InfoInterface $info
@return $this
186515
public function inherit(InfoInterface $info)
    {
        $hydrator      = new EntityHydrator();
        $imageStrategy = new FileCopyStrategy(new Attachment());
        
        $hydrator->addStrategy('image', $imageStrategy);
        
        $data = $hydrator->extract($info);
        $hydrator->hydrate($data, $this);
        
        return $this;
    }
1187178
protected function extractDataFromFileInfo(FileInfo $info)
    {
        $data = [];

        if ($info instanceof UploadedFile) {
            $data['original_name']      = $info->getClientOriginalName();
            $data['original_extension'] = $info->getClientOriginalExtension();
        }

        return $data;
    }
352726
public function sendID($info = null)
    {
        if (!$this->_capability('ID')) {
            throw new Horde_Imap_Client_Exception_NoSupportExtension('ID');
        }

        $this->_sendID(is_null($info) ? ($this->getParam('id') ?: array()) : $info);
    }
831064
protected function engineInfo(Infoset $info) {
		$engine = $this->createTable()
			->setColsWidths([1, 99])
			->enableBbCodes()
			->setTitle('Engine');
		
		$engine[] = ['PHP:', '[success]' . phpversion() . '[/success]'];
		$engine[] = ['Zend:', '[success]' . zend_version() . '[/success]'];
		$engine[] = ['OS:', php_uname()];
		$engine[] = ['User:', get_current_user()];
		
		$info[] = $engine;
	}
1349465
public function withUserInfo($user, $pass = null): self
    {
        $user = $this->validateComponent($user);
        $pass = $this->validateComponent($pass);
        if (null === $user || '' === $user) {
            $pass = null;
        }

        if ($user === $this->user && $pass === $this->pass) {
            return $this;
        }

        $clone = clone $this;
        $clone->user = $user;
        $clone->pass = $pass;

        return $clone;
    }
615389
public function paste(ImageInterface $image, $offsetX = 0, $offsetY = 0)
    {
        $point = new Point($offsetX, $offsetY);

        $this->image->paste($image->getInstance(), $point);

        return $this;
    }
1222479
public function add(ContentTypeCreationInformation $information)
    {
        $contentType = new ContentType($this->getContext());
        $qry = new InvokePostMethodQuery($this->getResourcePath(),null,null,$information);
        $this->getContext()->addQuery($qry,$contentType);
        $this->addChild($contentType);
        return $contentType;
    }
329315
protected function createTitle(Infoset $info) {
		preg_match('/([0-9\.]+)/i', phpversion(), $matches);
		$title = 'PHP ' . $matches[1];
		
		if (extension_loaded('xdebug')) {
			$title .= ' / [alert]xdebug[/alert]';
		}
		
		if (extension_loaded('apc')) {
			$title .= ' / [success]apc[/success]';
		}
		
		if (extension_loaded('Zend OPcache')) {
			$title .= ' / [success]opcache[/success]';
		}
		
		$info->setTitle($title);
	}
330919
protected function includePathInfo(Infoset $info) {
		$list = $this->createList();
		$list->setTitle('Include path');
		
		$include = explode(PATH_SEPARATOR, get_include_path());
		
		foreach ($include as $path) {
			$list[] = $path;
		}
		
		$info[] = $list;
	}
106509
public function withUserInfo($user, $password = null)
    {
        $this->user = $user;
        $this->password = $password;

        return $this;
    }
236221
public function getInfoBlock(Mage_Payment_Model_Info $info)
    {
        $instance = $this->getMethodInstance($info->getMethod());
        if ($instance) {
            $instance->setInfoInstance($info);
            $info->setMethodInstance($instance);
        }

        $blockType = $instance->getInfoBlockType();
        if ($this->getLayout()) {
            $block = $this->getLayout()->createBlock($blockType);
        } else {
            $className = Mage::getConfig()->getBlockClassName($blockType);
            $block = new $className;
        }

        $block->setInfo($info);
        return $block;
    }
409361
public function register(UserInterface $user, RegisterInfoInterface $registerInfo) {
		
		$database_profile = $this->socialProfileRepository->findByUserAndProvider($user, 'UserProfile');
		if($database_profile === null) {
			$profile = $registerInfo->getProfile();
			
			$this->copyProfileToDatabase($user, $profile);
			
		}
	}
681198
protected function createTitle(Infoset $info) {
		if (php_sapi_name() === 'cli') {
			$info->setTitle('[success]CLI[/success]');
			return;
		}
		
		$code = http_response_code();
		
		$title = ($code < 400)
			? '[success]' . $code . '[/success]'
			: '[alert]' . $code . '[/alert]';
		
		if (ob_get_level() > 0) {
			$title .= ' / ' . $this->formatMemory(ob_get_length());
		}
		
		$info->setTitle($title);
	}
721438
protected function additionalInfo(Infoset $info, array $profilerInfo) {
		$infoTable = $this->createTable()
			->enableBbCodes()
			->setTitle('Info');

		$info[] = $infoTable;

		foreach ($profilerInfo as $key => $value) {
			$infoTable[] = [$key . ':', $value];
		}
	}
1289257
public function info($point, $info = '', $type = self::TYPE_MSG)
    {
        self::$enable AND self::$info[$type][$point] = self::point($info, $point);
    }
509162
public function addInfo($info) : void
    {
        Assert::isInstanceOfAny(
            $info,
            [Chunk::class, KeyName::class, X509Data::class],
            'KeyInfo can only contain instances of KeyName, X509Data or Chunk.'
        );
        $this->info[] = $info;
    }
85255
private function processInfo(array $info) {
        $request = $this->findRequest($info["handle"]);

        if(isset($this->dispatcher) && false !== $request) {
            $this->dispatcher->dispatch(
                CurlEvents::MULTI_INFO, 
                new MultiInfoEvent(
                    $this, 
                    $request, 
                    new MultiInfo($info)
                )
            );
        }
    }